/* ============================================================
   Unified product page (product.aspx) styles.
   Every rule is scoped under .pp-page so nothing leaks into
   other pages. Do not reference these classes elsewhere.
   ============================================================ */

/* The product page sits on a plain white canvas. application.css gives body a
   halftone texture that shows in the side margins next to the centered content;
   this file loads only on product.aspx, so overriding body here is page-scoped. */
body {
    background: #fff !important;
}

.pp-page {
    --pp-accent: #c82f2a;
    --pp-accent-dark: #a82420;
    --pp-text: #222;
    --pp-text-muted: #767676;
    --pp-border: #e4e4e4;
    --pp-bg: #fff;
    --pp-bg-soft: #f7f7f8;
    --pp-radius: 10px;
    --pp-ok: #1e8e3e;
    --pp-link: #3b82c4;

    max-width: 1560px;
    margin: 0 auto;
    padding: 16px;
    color: var(--pp-text);
    background: var(--pp-bg);
    font-size: 14px;
    line-height: 1.5;
}

.pp-page *,
.pp-page *:before,
.pp-page *:after {
    box-sizing: border-box;
}

/* ---------- empty / not found state ---------- */

.pp-page .pp-empty {
    text-align: center;
    padding: 64px 16px;
}

.pp-page .pp-empty-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.pp-page .pp-empty-text {
    font-size: 16px;
    color: var(--pp-text-muted);
}

/* ---------- breadcrumb ---------- */

.pp-page .pp-breadcrumb {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--pp-text-muted);
}

.pp-page .pp-breadcrumb a {
    color: var(--pp-text-muted);
    text-decoration: none;
}

.pp-page .pp-breadcrumb-sep {
    margin: 0 6px;
    color: var(--pp-text-muted);
}

.pp-page .pp-breadcrumb a:hover {
    color: var(--pp-accent);
    text-decoration: underline;
}

/* ---------- main two-column layout ---------- */

/* Big gallery on the left (~2/3), a fixed-ish ~500px info column on the right,
   mirroring Crate&Barrel / B&H product pages. */
.pp-page .pp-layout {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 40px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .pp-page .pp-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

/* ---------- gallery: vertical thumbnail rail + large main image ---------- */

.pp-page .pp-gallery {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: sticky;
    top: 12px;
}

@media (max-width: 991px) {
    .pp-page .pp-gallery {
        position: static;
        flex-direction: column-reverse;
        gap: 10px;
    }
}

.pp-page .pp-gallery-main {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    background: #fff;
    overflow: hidden;
    text-align: center;
}

.pp-page .pp-gallery-main img {
    width: 100%;
    max-height: 720px;
    object-fit: contain;
    display: block;
}

/* zoom affordance appears only when the source has more pixels than shown */
.pp-page .pp-gallery-main img.pp-zoomable {
    cursor: zoom-in;
}

/* prev / next image arrows */
.pp-page .pp-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--pp-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--pp-text);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    opacity: 0;
    transition: opacity .15s ease, background-color .15s ease;
}

.pp-page .pp-gallery-main:hover .pp-gallery-nav {
    opacity: 1;
}

.pp-page .pp-gallery-nav:hover {
    background: #fff;
    color: var(--pp-accent);
}

.pp-page .pp-gallery-prev {
    left: 10px;
}

.pp-page .pp-gallery-next {
    right: 10px;
}

/* Touch devices have no hover, so keep arrows visible there */
@media (hover: none), (max-width: 991px) {
    .pp-page .pp-gallery-nav {
        opacity: 1;
    }
}

.pp-page .pp-thumbs {
    display: flex;
    flex-direction: column;
    flex: 0 0 76px;
    gap: 8px;
    max-height: 720px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
    .pp-page .pp-thumbs {
        flex-direction: row;
        flex-basis: auto;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 2px;
    }
}

.pp-page .pp-thumbs img.thumb {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    outline: 1px solid var(--pp-border);
    transition: border-color .15s ease;
}

.pp-page .pp-thumbs img.thumb:hover {
    border-color: #bbb;
}

.pp-page .pp-thumbs img.thumb.pp-thumb-active {
    border-color: var(--pp-accent);
}

/* ---------- title (clamped for keyword-stuffed marketplace titles) ---------- */

/* ~3.5 lines stay visible: the half-cut 4th line plus the fade hint that
   there is more text below. */
.pp-page .pp-title {
    font-size: 19px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
    max-height: calc(1.4em * 3.5);
    overflow: hidden;
}

.pp-page .pp-title.pp-title-clamped::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.6em;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff 80%);
    pointer-events: none;
}

.pp-page .pp-title.pp-title-expanded {
    max-height: none;
    overflow: visible;
}

.pp-page .pp-title.pp-title-expanded::after {
    display: none;
}

.pp-page .pp-title-toggle {
    display: block;
    width: 100%;
    border: none;
    background: none;
    padding: 0 0 4px;
    text-align: center;
    color: var(--pp-text-muted);
    cursor: pointer;
}

.pp-page .pp-title-toggle:hover {
    color: var(--pp-accent);
}

.pp-page .pp-title-chevron {
    display: inline-block;
    vertical-align: middle;
    transition: transform .2s ease;
}

.pp-page .pp-title-toggle-open .pp-title-chevron {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .pp-page .pp-title {
        font-size: 17px;
    }
}

.pp-page .pp-subline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 4px 0 12px;
}

.pp-page .pp-subline:empty {
    display: none;
}

/* Original (Japanese) title shown under the localized title on othershop */
.pp-page .pp-title-jp {
    font-size: 12px;
    color: var(--pp-text-muted);
    margin: 2px 0 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Interactive condition radio lists (Amazon / Surugaya / Lashinbang) */
.pp-page .pp-conditions label {
    display: block;
    padding: 4px 0;
    font-weight: 400;
    cursor: pointer;
}

.pp-page .pp-conditions input[type="radio"] {
    margin-right: 6px;
}

.pp-page .pp-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    border-radius: 99px;
    vertical-align: middle;
    white-space: nowrap;
}

.pp-page .pp-badge-sale {
    background: var(--pp-accent);
    color: #fff;
}

.pp-page .pp-badge-ok {
    background: var(--pp-ok);
    color: #fff;
}

.pp-page .pp-badge-muted {
    background: var(--pp-bg-soft);
    color: var(--pp-text-muted);
    border: 1px solid var(--pp-border);
}

/* ---------- stock status ---------- */

.pp-page .pp-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pp-ok);
}

.pp-page .pp-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pp-ok);
    flex: 0 0 auto;
}

/* ---------- estimated delivery ---------- */

.pp-page .pp-delivery {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid #dfe4e8;
    border-radius: 8px;
    background: #f8fbfd;
    font-size: 13px;
}

.pp-page .pp-delivery-icon {
    flex: 0 0 auto;
    color: var(--pp-link);
    line-height: 1;
}

.pp-page .pp-delivery-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pp-page .pp-delivery-eta {
    color: #4a565e;
}

.pp-page .pp-delivery-note {
    font-size: 12px;
    color: #8b97a0;
    margin-top: 4px;
}

/* clickable destination country + searchable picker */

.pp-page .pp-delivery-country {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.pp-page .pp-delivery-country-btn {
    display: inline-flex;
    border: none;
    background: none;
    padding: 2px;
    margin: 0;
    cursor: pointer;
    color: #6b7780;
    line-height: 1;
}

.pp-page .pp-delivery-country-btn:hover,
.pp-page .pp-delivery-country-btn:focus {
    color: var(--pp-accent);
}

.pp-page .pp-country-pop {
    position: absolute;
    top: calc(100% - 8px);
    left: 14px;
    right: 14px;
    z-index: 60;
    background: #fff;
    border: 1px solid var(--pp-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
    padding: 8px;
}

.pp-page .pp-country-pop input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--pp-border);
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 6px;
}

.pp-page .pp-country-list {
    max-height: 230px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pp-page .pp-country-list li {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.pp-page .pp-country-list li:hover {
    background: #eef4f8;
}

/* parcel care perks (rendered from the product_parcel_care_content resource) */

.pp-page .pp-care {
    margin-top: 14px;
    background: #f2fbf7;
    border: 1px solid #bfe6d7;
    border-radius: 8px;
    padding: 12px 14px;
}

.pp-page .pp-care-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
}

.pp-page .pp-care-row + .pp-care-row {
    margin-top: 9px;
}

.pp-page .pp-care-ico {
    flex: 0 0 auto;
    color: var(--pp-ok);
    line-height: 1;
    margin-top: 2px;
}

/* "official partner" reassurance badge above the title */

.pp-page .pp-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(90deg, #eaf6fc, #f7fcfe);
    border: 1px solid #b9dced;
    border-radius: 6px;
    padding: 7px 12px;
    margin-bottom: 12px;
}

/* green shield-check mark, same for every partner shop */
.pp-page .pp-partner-badge-logo {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52ae5f;
}

.pp-page .pp-partner-badge-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #0e5a7d;
}

.pp-page .pp-partner-badge-note {
    font-size: 11.5px;
    color: #5b7b8c;
}

/* ---------- price ---------- */

/* Big main price (customer's selected currency) on the left; a stacked column
   on the right carries the exact JPY reference and the cashback note. */
.pp-page .pp-price {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    margin: 6px 0 4px;
}

.pp-page .pp-price-main {
    color: var(--pp-accent);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.05;
}

/* bottom-aligned with the big price so both sit on one visual baseline */
.pp-page .pp-price-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1px;
    line-height: 1.3;
    padding-bottom: 3px;
}

/* hide the side column when it has nothing to show (JPY, no cashback, no sale) */
.pp-page .pp-price-side:empty {
    display: none;
}

.pp-page .pp-price-alt {
    font-size: 14px;
    color: var(--pp-text-muted);
    font-weight: 600;
}

/* "approximately" marker before the JPY reference */
.pp-page .pp-price-alt::before {
    content: "\2248 ";
}

.pp-page .pp-price-old {
    font-size: 13px;
    color: var(--pp-text-muted);
    text-decoration: line-through;
    margin-right: 6px;
}

/* Cashback as plain amber text (no pill / background). The amber colour is on
   the text span only, so the popover (rendered inside .pp-cashback) stays dark. */
.pp-page .pp-cashback {
    font-size: 13px;
}

.pp-page .pp-cashback-text {
    color: #b8860b;
    font-weight: 700;
}

.pp-page .pp-cashback .pp-help {
    text-decoration: none;
    font-size: 10px;
    font-weight: 400;
    cursor: pointer;
    margin-left: 3px;
    color: var(--pp-text-muted);
}

/* Green outlined pill for "Free shipping within Japan" */
.pp-page .pp-badge-freeship {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #8fce9d;
    background: #f2fbf4;
    color: var(--pp-ok);
    border-radius: 99px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.pp-page .pp-badge-freeship svg {
    flex: 0 0 auto;
}

/* ---------- coupons ---------- */

.pp-page .pp-coupons {
    margin: 10px 0;
}

.pp-page .pp-coupon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px dashed #d8b25e;
    background: #fffdf5;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.pp-page .pp-coupon-applied {
    border-style: solid;
    border-color: var(--pp-ok);
    background: #f4faf5;
}

.pp-page .pp-coupon-title {
    display: block;
    font-weight: 600;
    font-size: 13px;
}

.pp-page .pp-coupon-applied .pp-coupon-title::before {
    content: "\2713 ";
    color: var(--pp-ok);
}

.pp-page .pp-coupon-benefit {
    font-size: 12px;
    color: var(--pp-text-muted);
}

.pp-page .pp-coupon-benefit .pp-coupon-saving {
    color: #b8860b;
    font-weight: 700;
}

.pp-page .pp-coupon-applied .pp-coupon-saving {
    color: var(--pp-ok);
}

.pp-page .pp-coupon-applied-badge {
    flex: 0 0 auto;
    color: var(--pp-ok);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pp-page .pp-coupon-apply {
    flex: 0 0 auto;
    border: 1px solid var(--pp-link);
    background: #fff;
    color: var(--pp-link);
    border-radius: 99px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pp-page .pp-coupon-apply:hover {
    background: var(--pp-link);
    color: #fff;
}

.pp-page .pp-coupon-remove {
    flex: 0 0 auto;
    border: none;
    background: none;
    color: var(--pp-text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}

.pp-page .pp-coupon-remove:hover {
    color: var(--pp-accent);
}

.pp-page .pp-promo-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.pp-page .pp-promo-input {
    max-width: 240px;
    border-radius: 8px;
    font-size: 13px;
}

/* ---------- kakaku multi-shop offers ---------- */

.pp-page .pp-offers {
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    margin: 10px 0;
    overflow: hidden;
}

.pp-page .pp-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.pp-page .pp-offer + .pp-offer {
    border-top: 1px solid var(--pp-border);
}

.pp-page .pp-offer-price {
    color: var(--pp-accent);
    font-size: 19px;
    font-weight: 700;
}

.pp-page .pp-offer-price-alt {
    font-size: 13px;
    color: var(--pp-text-muted);
    font-weight: 600;
}

.pp-page .pp-offer-shop {
    font-size: 12px;
    color: var(--pp-text-muted);
    font-weight: 600;
}

/* ---------- meta rows ---------- */

.pp-page .pp-meta {
    margin: 12px 0;
}

.pp-page .pp-meta-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--pp-border);
    font-size: 13px;
}

/* The top divider lives on the first row so an all-hidden group renders nothing */
.pp-page .pp-meta .pp-meta-row:first-child {
    border-top: 1px solid var(--pp-border);
}

.pp-page .pp-meta-label {
    flex: 0 0 38%;
    max-width: 38%;
    color: var(--pp-text-muted);
}

.pp-page .pp-meta-value {
    flex: 1 1 auto;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pp-page .pp-meta-flag {
    color: var(--pp-ok);
}

.pp-page .pp-meta-borderless {
    margin: 0;
}

.pp-page .pp-meta-borderless .pp-meta-row:first-child {
    border-top: none;
}

.pp-page .pp-meta-borderless .pp-meta-row:last-child {
    border-bottom: none;
}

/* ---------- callouts ---------- */

.pp-page .pp-callout {
    border: 1px solid var(--pp-border);
    border-left-width: 4px;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 10px 0;
    background: var(--pp-bg-soft);
}

.pp-page .pp-callout-info {
    border-left-color: var(--pp-link);
}

.pp-page .pp-callout-warning {
    border-left-color: #e8a33d;
}

.pp-page .pp-callout-danger {
    border-left-color: var(--pp-accent);
}

/* ---------- variations ---------- */

.pp-page .pp-variations {
    margin: 12px 0;
}

/* Each variation (Color, Size, ...) sits in its own card, consistent with the
   delivery / payment / seller blocks around it */
.pp-page .pp-variation {
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    background: #fff;
    padding: 12px 16px;
    margin-bottom: 10px;
}

/* Booth price-variations dropdown has no .pp-variation wrapper of its own */
.pp-page #variationsWithPricesContainer {
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    background: #fff;
    padding: 12px 16px;
}

.pp-page .pp-variation-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.pp-page .pp-variations select,
.pp-page .pp-variations .select2-container {
    width: 100% !important;
}

/* ZenPlus colour variation: one swatch per colour, the current one ringed.
   Hex colours are circles filled with the colour, free-text colours are chips. */
.pp-page .pp-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.pp-page .pp-color-swatch,
.pp-page .pp-color-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--pp-text);
    cursor: pointer;
    transition: box-shadow .1s, border-color .1s;
}

.pp-page .pp-color-swatch {
    width: 32px;
    height: 32px;
    /* white inset ring keeps a white swatch visible on the white card */
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #c9c9c9;
}

.pp-page .pp-color-swatch:hover,
.pp-page .pp-color-swatch:focus-visible {
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #767676;
    outline: none;
}

.pp-page .pp-color-swatch.is-selected {
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--pp-accent);
}

.pp-page .pp-color-chip {
    padding: 0 12px;
    border: 1px solid #c9c9c9;
    background: #fff;
    font-size: 14px;
    line-height: 30px;
}

.pp-page .pp-color-chip:hover,
.pp-page .pp-color-chip:focus-visible {
    border-color: #767676;
    color: var(--pp-text);
    text-decoration: none;
    outline: none;
}

.pp-page .pp-color-chip.is-selected {
    border-color: var(--pp-accent);
    box-shadow: 0 0 0 1px var(--pp-accent);
    font-weight: 600;
}

/* colour exists, but not together with the currently chosen size / options:
   still reachable, shown dimmed */
.pp-page .pp-color-swatch.is-unavailable,
.pp-page .pp-color-chip.is-unavailable {
    opacity: .4;
}

.pp-page .pp-color-swatch.is-unavailable {
    outline: 1px dashed #999;
    outline-offset: 2px;
}

.pp-page .pp-color-chip.is-unavailable {
    border-style: dashed;
}

/* ---------- purchase form ---------- */

.pp-page .pp-purchase {
    margin: 14px 0 10px;
    padding: 14px;
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    background: var(--pp-bg-soft);
}

.pp-page .pp-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.pp-page .pp-comment-toggle {
    margin-bottom: 12px;
}

.pp-page .pp-comment-toggle > summary {
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--pp-link);
    display: inline-block;
}

.pp-page .pp-comment-toggle > summary::-webkit-details-marker {
    display: none;
}

.pp-page .pp-comment-toggle > summary:hover {
    text-decoration: underline;
}

.pp-page .pp-comment-toggle[open] > summary .pp-comment-plus {
    display: none;
}

.pp-page .pp-comment {
    margin-top: 8px;
    max-width: 100%;
    resize: vertical;
    border-radius: 8px;
    font-size: 13px;
}

.pp-page .pp-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
}

.pp-page .pp-qty {
    flex: 0 0 auto;
}

.pp-page .pp-qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.pp-page .pp-qty-btn {
    width: 38px;
    border: none;
    background: #fff;
    font-size: 17px;
    line-height: 1;
    color: var(--pp-text);
    cursor: pointer;
    padding: 0;
}

.pp-page .pp-qty-btn:hover {
    background: var(--pp-bg-soft);
}

.pp-page .pp-qty-input {
    width: 52px;
    border: none;
    border-left: 1px solid var(--pp-border);
    border-right: 1px solid var(--pp-border);
    text-align: center;
    font-size: 15px;
    height: 40px;
    outline: none;
}

.pp-page .pp-btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.pp-page .pp-btn-cta {
    flex: 1 1 200px;
    min-height: 46px;
    padding: 12px 22px;
    font-size: 16px;
    background: var(--pp-accent);
    color: #fff;
}

.pp-page .pp-btn-cta:hover,
.pp-page .pp-btn-cta:focus {
    background: var(--pp-accent-dark);
    color: #fff;
}

.pp-page .pp-btn-cta[disabled] {
    background: #ccc;
    cursor: not-allowed;
}

.pp-page .pp-btn-sm {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 16px;
    font-size: 13px;
}

.pp-page .pp-btn-ghost {
    padding: 9px 16px;
    font-size: 13px;
    background: #fff;
    border: 1px solid #ccc;
    color: var(--pp-text);
}

.pp-page .pp-btn-ghost:hover,
.pp-page .pp-btn-ghost:focus {
    border-color: var(--pp-accent);
    color: var(--pp-accent);
    text-decoration: none;
}

/* ---------- secondary actions ---------- */

.pp-page .pp-secondary {
    margin: 14px 0;
}

.pp-page .pp-secondary-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pp-page .pp-secondary-buttons > * {
    flex: 1 1 180px;
}

.pp-page .pp-secondary-buttons .pp-btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Restyle WatchlistControl's own bootstrap buttons to match the ghost style */
.pp-page .pp-watch input.btn {
    width: 100% !important;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: var(--pp-text);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    box-shadow: none;
    text-shadow: none;
}

.pp-page .pp-watch input.btn:hover,
.pp-page .pp-watch input.btn:focus {
    border-color: var(--pp-accent);
    color: var(--pp-accent);
    background: #fff;
}

.pp-page .pp-watch a.add-comment {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    font-size: 12px;
    color: var(--pp-link);
}

/* Quiet links row: "ask a question" + "report abuse" */
/* ---------- trust / reassurance block ---------- */

.pp-page .pp-trust {
    background: var(--pp-bg-soft);
    padding: 6px 16px;
}

.pp-page .pp-trust-row {
    padding: 10px 0;
    font-size: 13px;
}

.pp-page .pp-trust-row + .pp-trust-row {
    border-top: 1px solid var(--pp-border);
}

.pp-page .pp-trust-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.pp-page .pp-trust-glyph {
    margin-right: 8px;
    color: var(--pp-link);
    font-size: 13px;
    top: 2px;
}

.pp-page .pp-trust-text {
    color: var(--pp-text);
}

.pp-page .pp-trust-payments img {
    height: 26px;
    width: auto;
    margin: 4px 8px 4px 0;
    vertical-align: middle;
}

/* ---------- collapsible "product details" ---------- */

.pp-page .pp-details {
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    margin: 12px 0;
    background: #fff;
}

.pp-page .pp-details > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pp-page .pp-details > summary::-webkit-details-marker {
    display: none;
}

.pp-page .pp-details > summary::after {
    content: "+";
    font-size: 18px;
    line-height: 1;
    color: var(--pp-text-muted);
}

.pp-page .pp-details[open] > summary::after {
    content: "\2212";
}

.pp-page .pp-details-body {
    padding: 0 16px 12px;
}

/* ---------- cards (seller / fee summary) ---------- */

.pp-page .pp-card {
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    padding: 14px 16px;
    margin: 12px 0;
    background: #fff;
}

.pp-page .pp-card-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pp-text-muted);
    margin-bottom: 6px;
}

.pp-page .pp-seller-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--pp-text);
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pp-page a.pp-seller-name:hover {
    color: var(--pp-accent);
    text-decoration: underline;
}

.pp-page .pp-seller-name-static {
    cursor: default;
}

.pp-page .pp-seller-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pp-page .pp-seller-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
}

.pp-page .pp-seller-rate {
    margin: 2px 0;
}

.pp-page .pp-seller-points {
    font-size: 12px;
    color: var(--pp-text-muted);
}

.pp-page .pp-rate-up {
    color: var(--pp-ok);
    font-size: 12px;
    text-decoration: none;
    margin-left: 6px;
}

.pp-page .pp-rate-down {
    color: var(--pp-accent);
    font-size: 12px;
    text-decoration: none;
    margin-left: 6px;
}

/* Seller actions: a tidy row of equal quiet links */
/* "have we bought from this seller" line (SellersStatistics buckets) */

.pp-page .pp-seller-history {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.4;
}

.pp-page .pp-seller-history-ico {
    flex: 0 0 auto;
    line-height: 1;
}

.pp-page .pp-seller-history-never {
    background: #f5f6f7;
    color: #6b7780;
}

.pp-page .pp-seller-history-occasional {
    background: #eaf3fa;
    color: #2a5f8a;
}

.pp-page .pp-seller-history-often {
    background: #eef9f1;
    color: #22713d;
}

.pp-page .pp-seller-history-veryoften {
    background: #e3f6e9;
    color: #1a6b34;
    font-weight: 600;
}

/* one row of ghost buttons (same look as watchlist / original-page buttons);
   font-size needs !important — AddSellerToWatchList carries an inline 10px */
.pp-page .pp-seller-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--pp-border);
}

.pp-page .pp-seller-actions > a,
.pp-page .pp-seller-actions > a.btn {
    flex: 1 1 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 12.5px !important;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pp-text);
    text-decoration: none !important;
    box-shadow: none;
    text-shadow: none;
}

.pp-page .pp-seller-actions > a:hover,
.pp-page .pp-seller-actions > a:focus {
    border-color: var(--pp-accent);
    color: var(--pp-accent);
    background: #fff;
}

/* ---------- fee calculator (PriceSummary control) ---------- */

/* The shared control carries its own inline styles; neutralize the dated
   blue box so it reads as part of the card. */
.pp-page .pp-summary > div.notranslate {
    background-color: #fff !important;
    padding: 0 !important;
    margin-top: 0 !important;
}

/* The accordion <summary> already shows "How much will it cost?", so hide the
   control's own centered title (its first row). */
.pp-page .pp-summary > div.notranslate > .row:first-child {
    display: none;
}

.pp-page .pp-summary label {
    font-weight: 600 !important;
    font-size: 13px;
    color: var(--pp-text);
    margin-bottom: 2px !important;
}

.pp-page .pp-summary .form-control {
    border-radius: 8px;
    font-size: 13px;
}

.pp-page .pp-summary .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.pp-page .pp-summary .input-group-addon {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* calculator amounts converted to the selected currency, JPY kept as reference */
.pp-page .pp-summary .pp-sum-conv {
    font-weight: 700;
}

.pp-page .pp-summary .pp-sum-jpy {
    font-size: 11px;
    font-weight: 400;
    color: var(--pp-text-muted);
    white-space: nowrap;
}

/* ---------- reassurance info strip ---------- */

.pp-page .pp-infostrip {
    margin-top: 28px;
    background: var(--pp-bg);
    border: 1px solid #dfe4e8;
    border-radius: var(--pp-radius);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pp-page .pp-infostrip-item {
    padding: 20px 22px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.pp-page .pp-infostrip-item + .pp-infostrip-item {
    border-left: 1px solid #eef2f4;
}

.pp-page .pp-infostrip-ico {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #eaf3fa;
    color: var(--pp-link);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-page .pp-infostrip-ico svg {
    display: block;
}

.pp-page .pp-infostrip-title {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--pp-text);
}

.pp-page .pp-infostrip-text {
    font-size: 12.5px;
    color: #6b7780;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .pp-page .pp-infostrip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-page .pp-infostrip-item + .pp-infostrip-item {
        border-left: 0;
    }

    .pp-page .pp-infostrip-item:nth-child(even) {
        border-left: 1px solid #eef2f4;
    }

    .pp-page .pp-infostrip-item:nth-child(n+3) {
        border-top: 1px solid #eef2f4;
    }
}

@media (max-width: 575px) {
    .pp-page .pp-infostrip {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-page .pp-infostrip-item:nth-child(even) {
        border-left: 0;
    }

    .pp-page .pp-infostrip-item + .pp-infostrip-item {
        border-top: 1px solid #eef2f4;
    }
}

/* ---------- "how we pack" trust section ---------- */

.pp-page .pp-pack {
    margin-top: 28px;
    background: #0f2f40;
    border-radius: 12px;
    padding: 30px 32px;
    color: #fff;
}

.pp-page .pp-pack-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.pp-page .pp-pack-kicker {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7fd0ec;
    margin-bottom: 7px;
}

.pp-page .pp-pack-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-align:left;
}

.pp-page .pp-pack-sub {
    margin-top: 7px;
    font-size: 14px;
    color: #b6ccd8;
    max-width: 640px;
}

.pp-page .pp-pack-tour {
    flex: 0 0 auto;
    color: #7fd0ec;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.pp-page .pp-pack-tour:hover {
    color: #fff;
    text-decoration: none;
}

.pp-page .pp-pack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.pp-page .pp-pack-photo {
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    background: #16455c;
}

.pp-page .pp-pack-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.pp-page .pp-pack-stepno {
    margin-top: 11px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #7fd0ec;
}

.pp-page .pp-pack-stepname {
    font-size: 14.5px;
    font-weight: 700;
    margin-top: 2px;
}

.pp-page .pp-pack-steptext {
    font-size: 12.5px;
    color: #b6ccd8;
    line-height: 1.55;
    margin-top: 4px;
}

.pp-page .pp-pack-stats {
    margin-top: 22px;
    display: flex;
    gap: 10px 26px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #d5e6ee;
}

@media (max-width: 991px) {
    .pp-page .pp-pack {
        padding: 22px 18px;
    }

    .pp-page .pp-pack-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .pp-page .pp-pack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-page .pp-pack-photo {
        height: auto;
    }
}

@media (max-width: 575px) {
    .pp-page .pp-pack-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- added-to-cart toast ---------- */

.pp-cart-toast {
    position: fixed;
    top: 84px;
    right: 20px;
    z-index: 1060;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 380px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid var(--pp-border, #e4e4e4);
    border-top: 3px solid #1e8e3e;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    padding: 14px 34px 14px 14px;
    overflow: hidden;
    animation: pp-toast-in .3s ease;
}

@keyframes pp-toast-in {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.pp-cart-toast-out {
    transition: transform .25s ease, opacity .25s ease;
    transform: translateX(30px);
    opacity: 0;
}

.pp-cart-toast-check {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1e8e3e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-cart-toast-img {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--pp-border, #e4e4e4);
}

.pp-cart-toast-body {
    min-width: 0;
    font-size: 13px;
}

.pp-cart-toast-title {
    font-weight: 700;
    color: #1e8e3e;
    margin-bottom: 2px;
}

.pp-cart-toast-name {
    color: #555;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

.pp-cart-toast-promo {
    font-size: 12px;
    margin-bottom: 6px;
}

.pp-cart-toast-promo-ok { color: #1e8e3e; }
.pp-cart-toast-promo-warn { color: #b26a00; }

/* self-contained: the toast lives outside .pp-page, so the shared
   .pp-btn rules do not reach it */
.pp-cart-toast .pp-cart-toast-cta {
    display: inline-block;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    background: #c82f2a;
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
}

.pp-cart-toast .pp-cart-toast-cta:hover,
.pp-cart-toast .pp-cart-toast-cta:focus {
    background: #a82420;
    color: #fff;
    text-decoration: none;
}

.pp-cart-toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: none;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.pp-cart-toast-close:hover { color: #333; }

/* auto-hide progress along the bottom edge */
.pp-cart-toast-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background: rgba(30, 142, 62, .35);
    width: 100%;
    animation: pp-toast-bar 8s linear forwards;
}

@keyframes pp-toast-bar {
    from { width: 100%; }
    to { width: 0; }
}

@media (max-width: 575px) {
    .pp-cart-toast {
        top: auto;
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}

/* ---------- description ---------- */

.pp-page .pp-description {
    margin-top: 28px;
    border-top: 1px solid var(--pp-border);
    padding-top: 18px;
}

.pp-page .pp-description-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 18px;
    margin-bottom: 10px;
}

.pp-page .pp-description-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}

/* Description / FAQ tabs */
.pp-page .pp-desc-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--pp-border);
    width: 100%;
}

.pp-page .pp-desc-tab {
    border: none;
    background: none;
    padding: 0 2px 10px;
    margin-bottom: -1px;
    font-size: 16px;
    font-weight: 600;
    color: var(--pp-text-muted);
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

/* "Report abuse" sits in the tabs row, pushed right, link-styled */
.pp-page .pp-desc-abuse {
    margin-left: auto;
    align-self: center;
    padding-bottom: 8px;
}

.pp-page .pp-desc-abuse a.btn {
    width: auto !important;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    text-shadow: none;
    font-size: 12px;
    font-weight: 400;
    color: var(--pp-text-muted);
    text-decoration: none;
}

.pp-page .pp-desc-abuse a.btn:hover,
.pp-page .pp-desc-abuse a.btn:focus {
    text-decoration: underline;
    color: var(--pp-accent);
    background: none;
}

.pp-page .pp-desc-tab:hover {
    color: var(--pp-text);
}

.pp-page .pp-desc-tab.pp-desc-tab-active {
    color: var(--pp-text);
    border-bottom-color: var(--pp-accent);
    cursor: default;
}

/* auto-translation notice above the description body */
.pp-page .pp-desc-note {
    margin-top: 16px;
    background: #f6f9fb;
    border-left: 3px solid #2196c9;
    padding: 11px 14px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #4a565e;
}

[dir='rtl'] .pp-page .pp-desc-note {
    border-left: 0;
    border-right: 3px solid #2196c9;
}

/* FAQ accordion */
.pp-page .pp-faq details {
    border-bottom: 1px solid var(--pp-border);
}

.pp-page .pp-faq summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 2px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.pp-page .pp-faq summary::-webkit-details-marker {
    display: none;
}

.pp-page .pp-faq summary::after {
    content: "+";
    font-size: 20px;
    line-height: 1;
    color: var(--pp-text-muted);
    flex: 0 0 auto;
}

.pp-page .pp-faq details[open] summary::after {
    content: "\2212";
}

.pp-page .pp-faq details > div {
    padding: 0 2px 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pp-text);
    max-width: 900px;
}

.pp-page .pp-faq details > div p {
    margin: 0 0 8px;
}

.pp-page .pp-faq details > div p:last-child {
    margin-bottom: 0;
}

.pp-page .pp-faq details > div ul {
    margin: 0 0 8px;
    padding-left: 20px;
}

.pp-page .pp-faq details > div ul:last-child {
    margin-bottom: 0;
}

/* Small helper links (weight guide in the calculator, size table under variations) */
.pp-page .pp-mini-link {
    display: inline-block;
    font-size: 12px;
    color: var(--pp-link);
    text-decoration: none;
    margin: 2px 0 8px;
}

.pp-page .pp-mini-link:hover {
    text-decoration: underline;
}

.pp-page .pp-translate-widget {
    padding: 0;
    margin-bottom: 6px;
}

.pp-page .pp-description-body {
    overflow-x: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 14px;
    line-height: 1.6;
}

/* Shop HTML loves <small> and legacy <font size> - keep body copy readable */
.pp-page .pp-description-body small {
    font-size: 100%;
}

.pp-page .pp-description-body font[size="1"],
.pp-page .pp-description-body font[size="2"] {
    font-size: 14px;
}

.pp-page .pp-description-body img {
    max-width: 100% !important;
    height: auto !important;
}

.pp-page .pp-description-body table {
    max-width: 100%;
}

/* Cap shop-supplied headline sizes so descriptions don't shout */
.pp-page .pp-description-body h1,
.pp-page .pp-description-body h2,
.pp-page .pp-description-body h3 {
    font-size: 20px !important;
    line-height: 1.4;
}

/* ---------- lightbox ---------- */

.pp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, .88);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.pp-lightbox img {
    max-width: 96vw;
    max-height: 96vh;
    object-fit: contain;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
    background: #fff;
}

.pp-lightbox-close {
    position: absolute;
    top: 14px;
    right: 20px;
    border: none;
    background: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
}

.pp-lightbox-close:hover {
    opacity: 1;
}

/* ---------- Google Translate widget chrome ---------- */

/* application.css hides the legacy goog-te-* widget UI, but Google renamed
   the classes (VIpgJd-*): the floating round progress bubble in the top-left
   corner spins by design and is never part of our UI — hide it the same way
   the old banner/tooltip are hidden. Translation itself is cookie-driven and
   unaffected. This file only loads on the product page. */
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
    display: none !important;
}

/* New-generation "show original" popup card, same role as the old .goog-tooltip */
.VIpgJd-yAWNEb-L7lbkb {
    display: none !important;
}

/* Inline highlight the widget puts on a clicked/tapped translated fragment.
   Do NOT display:none these - the class sits on the text itself, so hiding it
   makes labels blink out on click. Neutralize the styling instead, matching
   what application.css does for the legacy .goog-text-highlight. */
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q,
.VIpgJd-yAWNEb-TVLw9c-ppHlrf-sn54Q {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: inherit !important;
}

/* ---------- RTL ---------- */

[dir='rtl'] .pp-page .pp-callout {
    border-left-width: 1px;
    border-right-width: 4px;
}

/* ---------- fixed side tab clearance ---------- */

/* The header's rotated "shipping calculator" tab is fixed to the right edge
   (hidden below 992px). Until the viewport is wide enough for the centered
   content's own margins to clear it, keep symmetric side padding so the tab
   never covers the info column. */
@media (min-width: 992px) and (max-width: 1688px) {
    .pp-page {
        padding-left: 64px;
        padding-right: 64px;
    }
}

/* ---------- small screens ---------- */

@media (max-width: 767px) {
    .pp-page {
        padding: 10px;
    }

    .pp-page .pp-price-main {
        font-size: 27px;
    }

    .pp-page .pp-actions-row .pp-btn-cta {
        flex-basis: 100%;
    }

    .pp-page .pp-meta-label {
        flex-basis: 45%;
        max-width: 45%;
    }
}
