/*
 * Branded UK product configurator — Soft UI / neumorphic layer.
 *
 * Loaded after pc-product-popup.css and scoped to #orderPopup.order_overlay,
 * so it only restyles the shop popup (the bundles page uses .bundle-host and
 * does not load this file). Visual only: colours, shadows, radii and
 * press states. Fonts are left untouched. No layout sizes change, no JavaScript depends on it.
 */

#orderPopup.order_overlay {
    --su-dawn: #86BAED;
    --su-dawn-soft: #EAF3FC;
    --su-tangerine: #EA6B19;
    --su-tangerine-dark: #D45A0C;
    --su-navy: #0C1E3B;
    --su-white: #FFFFFF;
    --su-ice: #F5F6F8;
    --su-surface: #E7EBF1;
    /* Page areas inside the card use the same surface, so no lighter band shows. */
    --pc-flow-soft: var(--su-surface);
    --su-green: #16A34A;
    --su-line: rgba(226, 232, 240, 0.85);

    /* Raised panel: light from top-left, soft shade bottom-right. */
    --su-panel-shadow:
        10px 12px 22px rgba(51, 65, 85, 0.30),
        3px 4px 7px rgba(51, 65, 85, 0.18),
        -8px -8px 18px rgba(255, 255, 255, 0.95),
        inset 1px 1px 0 rgba(255, 255, 255, 1);
    /* Small raised control (buttons, chips, tiers). */
    --su-raise:
        4px 6px 10px rgba(51, 65, 85, 0.34),
        1px 2px 3px rgba(51, 65, 85, 0.22),
        -4px -4px 9px rgba(255, 255, 255, 0.95),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    --su-raise-hover:
        6px 9px 14px rgba(51, 65, 85, 0.38),
        1px 2px 4px rgba(51, 65, 85, 0.22),
        -4px -4px 9px rgba(255, 255, 255, 0.95),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    /* Pressed / selected: pushed into the surface. */
    --su-press:
        inset 3px 3px 6px rgba(51, 65, 85, 0.32),
        inset -3px -3px 6px rgba(255, 255, 255, 0.95);
    --su-primary-shadow:
        4px 8px 14px rgba(234, 107, 25, 0.42),
        1px 2px 4px rgba(51, 65, 85, 0.22),
        -4px -4px 9px rgba(255, 255, 255, 0.9),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);
    /* Same depth without the top-left light, for controls packed close together
       or sitting near a clipped edge (filter chips, page navigation). */
    --su-raise-tight:
        3px 5px 9px rgba(51, 65, 85, 0.34),
        1px 2px 3px rgba(51, 65, 85, 0.22),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    --su-focus: 0 0 0 3px rgba(134, 186, 237, 0.9);

    background: rgba(12, 20, 36, 0.78);
}

/* ---------- Floating popup ---------- */

#orderPopup.order_overlay .order_card {
    background: var(--su-surface);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.35),
        0 10px 20px rgba(0, 0, 0, 0.18),
        inset 1px 1px 1px rgba(255, 255, 255, 1);
}

/* Header and page navigation sit on the card surface. */
#orderPopup.order_overlay .pc-product-flow-header,
#orderPopup.order_overlay .pc-flow-page-nav,
#orderPopup.order_overlay .p2-colour-footer,
#orderPopup.order_overlay .p3-bottom-bar {
    background: transparent;
    border-color: transparent;
}

/* One continuous background: no line under the header. */
#orderPopup.order_overlay .pc-product-flow-header {
    box-shadow: none;
}

/* ---------- Brand: bigger logo with a 3D cast shadow ---------- */

#orderPopup.order_overlay .pc-product-flow-brand {
    width: max-content;
    justify-self: start;
    gap: 8px;
    padding-right: 0;
    border-right: 0;
}

#orderPopup.order_overlay .pc-product-flow-logo,
#orderPopup.order_overlay .pc-product-flow-logo-link {
    width: 140px;
    height: auto;
}

/* 3D: the logo lifts off the background with a soft cast shadow. */
#orderPopup.order_overlay .pc-product-flow-logo {
    filter:
        drop-shadow(3px 4px 3px rgba(51, 65, 85, 0.35))
        drop-shadow(1px 1px 0 rgba(51, 65, 85, 0.25))
        drop-shadow(-2px -2px 3px rgba(255, 255, 255, 0.95));
}

/* "Build your order" and the step 4 title are hidden: the logo and the
   progress bar already say where the customer is. */
#orderPopup.order_overlay .pc-product-flow-brand-copy,
#orderPopup.order_overlay .p4-nav-title > strong {
    display: none;
}

/* ---------- Floating panels ---------- */

#orderPopup.order_overlay .product-gallery,
#orderPopup.order_overlay .product-shop-info,
#orderPopup.order_overlay .p2-preview-frame,
#orderPopup.order_overlay .op-scroll-shell.p2-colour-scroll-shell,
#orderPopup.order_overlay .page-3 .p3-choose-qty .p3-product-image-frame,
#orderPopup.order_overlay .page-4 .p4-preview-frame,
#orderPopup.order_overlay .page-4 .p4-order-summary,
#orderPopup.order_overlay .op-scroll-shell.p4-positions-scroll-shell {
    background: var(--su-white);
    border-color: rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    box-shadow: var(--su-panel-shadow);
}

/* Colour groups inside the colour panel: a gentler, second level. */
#orderPopup.order_overlay .colour-section.p2-popular-section,
#orderPopup.order_overlay .colour-section.p2-all-section {
    background: var(--su-white);
    border-color: rgba(226, 232, 240, 0.7);
    border-radius: 14px;
    box-shadow: var(--su-raise);
}

#orderPopup.order_overlay .product-main-image {
    border-color: rgba(226, 232, 240, 0.7);
    border-radius: 18px;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Round zoom control on the product photo. */
#orderPopup.order_overlay .product-zoom-btn {
    background: var(--su-white);
    box-shadow: var(--su-raise);
}

/* ---------- Progress steps ---------- */

#orderPopup.order_overlay .pc-product-progress li:not(.is-complete) .pc-progress-number {
    background: var(--su-white);
    border-color: rgba(226, 232, 240, 0.9);
    color: var(--su-navy);
    box-shadow: var(--su-raise);
}

#orderPopup.order_overlay .pc-product-progress li.is-active:not(.is-complete) .pc-progress-number {
    background: var(--su-tangerine);
    border-color: var(--su-tangerine);
    color: var(--su-white);
    box-shadow: 0 3px 8px rgba(234, 107, 25, 0.30), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Step names mask the dashed line with the card colour, not white. */
#orderPopup.order_overlay:not(.bundle-host) .pc-product-progress li > span:last-child {
    background: var(--su-surface);
}

/* First-page NEXT: same white raised button as the other page controls. */
#orderPopup.order_overlay .track > .page:first-child .btn-continue {
    background: var(--su-white);
    border-color: var(--su-line);
    border-radius: 12px;
    color: var(--su-navy);
    box-shadow: var(--su-raise);
}

#orderPopup.order_overlay .track > .page:first-child .btn-continue:hover {
    background: var(--su-white);
    color: var(--su-navy);
    box-shadow: var(--su-raise-hover);
    transform: translateY(-1px);
}

#orderPopup.order_overlay .track > .page:first-child .btn-continue:active,
#orderPopup.order_overlay .track > .page:first-child .btn-continue.is-clicked {
    background: var(--su-ice);
    color: var(--su-navy);
    box-shadow: var(--su-press);
    transform: translateY(1px);
}

/* ---------- Tactile buttons: shared ---------- */

#orderPopup.order_overlay .order_close_btn,
#orderPopup.order_overlay .pc-step-back,
#orderPopup.order_overlay .btn-continue.next,
#orderPopup.order_overlay .btn-nav.btn-next,
#orderPopup.order_overlay .p1-action,
#orderPopup.order_overlay .p1-copy-link,
#orderPopup.order_overlay .p2-continue-qty,
#orderPopup.order_overlay .p2-filter-chip,
#orderPopup.order_overlay .p3-btn-plain,
#orderPopup.order_overlay .p3-btn-customize,
#orderPopup.order_overlay .p3-continue-customise,
#orderPopup.order_overlay .qty-btn,
#orderPopup.order_overlay .page-4 .p4-btn-skip,
#orderPopup.order_overlay .page-4 .p4-saved-logos {
    transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

/* Secondary: white raised surfaces with navy text. */
#orderPopup.order_overlay .pc-step-back,
#orderPopup.order_overlay .btn-continue.next,
#orderPopup.order_overlay .btn-nav.btn-next,
#orderPopup.order_overlay .p1-action-secondary,
#orderPopup.order_overlay .p3-btn-plain,
#orderPopup.order_overlay .page-4 .p4-btn-skip,
#orderPopup.order_overlay .page-4 .p4-saved-logos {
    background: var(--su-white);
    border-color: var(--su-line);
    border-radius: 12px;
    color: var(--su-navy);
    box-shadow: var(--su-raise);
}

#orderPopup.order_overlay .order_close_btn {
    background: var(--su-white);
    border-color: rgba(234, 107, 25, 0.55);
    color: var(--su-tangerine);
    box-shadow: var(--su-raise);
}

/* Primary: Tangerine with a soft lift, no glow. */
#orderPopup.order_overlay .p1-action-primary,
#orderPopup.order_overlay .p2-continue-qty,
#orderPopup.order_overlay .p3-btn-customize,
#orderPopup.order_overlay .p3-continue-customise {
    background: linear-gradient(180deg, #EF7A2E 0%, var(--su-tangerine) 100%);
    border-color: var(--su-tangerine);
    border-radius: 12px;
    color: var(--su-white);
    box-shadow: var(--su-primary-shadow);
}

/* Disabled buttons stay flat so they don't look pressable. */
#orderPopup.order_overlay .pc-step-back:disabled,
#orderPopup.order_overlay .btn-continue.next:disabled,
#orderPopup.order_overlay .btn-nav.btn-next:disabled,
#orderPopup.order_overlay .p1-action:disabled,
#orderPopup.order_overlay .p2-continue-qty:disabled,
#orderPopup.order_overlay .p3-btn-plain:disabled,
#orderPopup.order_overlay .p3-btn-customize:disabled,
#orderPopup.order_overlay .p3-continue-customise:disabled,
#orderPopup.order_overlay .qty-btn:disabled,
#orderPopup.order_overlay [aria-disabled="true"].next {
    box-shadow: none;
    transform: none;
}

#orderPopup.order_overlay .p2-continue-qty:disabled,
#orderPopup.order_overlay .p3-btn-customize:disabled,
#orderPopup.order_overlay .p3-continue-customise:disabled,
#orderPopup.order_overlay .p1-action-primary:disabled {
    background: #E9ECF1;
    border-color: #E9ECF1;
    color: #8A94A6;
}

@media (hover: hover) {
    #orderPopup.order_overlay .order_close_btn:hover,
    #orderPopup.order_overlay .pc-step-back:not(:disabled):hover,
    #orderPopup.order_overlay .btn-continue.next:not(:disabled):hover,
    #orderPopup.order_overlay .btn-nav.btn-next:not(:disabled):hover,
    #orderPopup.order_overlay .p1-action-secondary:not(:disabled):hover,
    #orderPopup.order_overlay .p3-btn-plain:not(:disabled):hover,
    #orderPopup.order_overlay .page-4 .p4-btn-skip:hover,
    #orderPopup.order_overlay .page-4 .p4-saved-logos:hover,
    #orderPopup.order_overlay .p2-filter-chip:not(.is-active):hover {
        transform: translateY(-1px);
        box-shadow: var(--su-raise-hover);
        background: var(--su-white);
    }

    #orderPopup.order_overlay .p1-action-primary:not(:disabled):hover,
    #orderPopup.order_overlay .p2-continue-qty:not(:disabled):hover,
    #orderPopup.order_overlay .p3-btn-customize:not(:disabled):hover,
    #orderPopup.order_overlay .p3-continue-customise:not(:disabled):hover {
        transform: translateY(-1px);
        background: linear-gradient(180deg, #EA6B19 0%, var(--su-tangerine-dark) 100%);
        box-shadow:
            0 8px 18px rgba(234, 107, 25, 0.30),
            0 2px 4px rgba(15, 23, 42, 0.08),
            inset 0 1px 1px rgba(255, 255, 255, 0.35);
    }
}

/* Pressed: the button sinks into the surface. */
#orderPopup.order_overlay .order_close_btn:active,
#orderPopup.order_overlay .pc-step-back:not(:disabled):active,
#orderPopup.order_overlay .btn-continue.next:not(:disabled):active,
#orderPopup.order_overlay .btn-nav.btn-next:not(:disabled):active,
#orderPopup.order_overlay .p1-action-secondary:not(:disabled):active,
#orderPopup.order_overlay .p3-btn-plain:not(:disabled):active,
#orderPopup.order_overlay .page-4 .p4-btn-skip:active,
#orderPopup.order_overlay .page-4 .p4-saved-logos:active,
#orderPopup.order_overlay .p2-filter-chip:active,
#orderPopup.order_overlay .qty-btn:not(:disabled):active {
    transform: translateY(1px);
    box-shadow: var(--su-press);
}

#orderPopup.order_overlay .p1-action-primary:not(:disabled):active,
#orderPopup.order_overlay .p2-continue-qty:not(:disabled):active,
#orderPopup.order_overlay .p3-btn-customize:not(:disabled):active,
#orderPopup.order_overlay .p3-continue-customise:not(:disabled):active {
    transform: translateY(1px);
    background: var(--su-tangerine-dark);
    box-shadow: inset 2px 2px 5px rgba(15, 23, 42, 0.22);
}

/* Visible keyboard focus everywhere a control can be reached. */
#orderPopup.order_overlay button:focus-visible,
#orderPopup.order_overlay a:focus-visible,
#orderPopup.order_overlay select:focus-visible,
#orderPopup.order_overlay input:focus-visible {
    outline: 2px solid var(--su-navy);
    outline-offset: 2px;
}

/* ---------- Colour filters ---------- */

#orderPopup.order_overlay .p2-filter-chip {
    background: var(--su-white);
    border-color: var(--su-line);
    color: var(--su-navy);
    box-shadow: var(--su-raise);
}

#orderPopup.order_overlay .p2-filter-chip.is-active {
    background: var(--su-dawn-soft);
    border-color: var(--su-dawn);
    color: var(--su-navy);
    box-shadow: var(--su-press);
}

#orderPopup.order_overlay .p2-select-wrap select {
    border-color: var(--su-line);
    border-radius: 10px;
    box-shadow: var(--su-press);
}

/* ---------- Sizes and quantities ---------- */

#orderPopup.order_overlay .size-qty-box {
    background: var(--su-white);
    border-color: rgba(226, 232, 240, 0.7);
    box-shadow: var(--su-raise);
}

#orderPopup.order_overlay .size-qty-box.has-qty {
    border-color: var(--su-dawn);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.07), inset 0 0 0 1px rgba(134, 186, 237, 0.5);
}

#orderPopup.order_overlay .qty-btn {
    background: var(--su-white);
    color: var(--su-navy);
    /* Outline drawn with a shadow ring so the button keeps its size. */
    box-shadow: var(--su-raise);
}

#orderPopup.order_overlay .qty-btn:disabled {
    color: #A5AEBD;
    background: var(--su-ice);
}

#orderPopup.order_overlay .qty-input {
    background: var(--su-ice);
    border-color: transparent;
    color: var(--su-navy);
    box-shadow: var(--su-press);
}

/* ---------- Volume pricing tiers ---------- */

#orderPopup.order_overlay .pc-price-tier,
#orderPopup.order_overlay .page-3 .p3-choose-qty .discount-tier-card {
    background: var(--su-white);
    border-color: rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    box-shadow: var(--su-raise);
}

#orderPopup.order_overlay .page-3 .p3-choose-qty .discount-tier-card.tier-active {
    background: var(--su-dawn-soft);
    border-color: var(--su-dawn);
    box-shadow: var(--su-press);
}

/* ---------- Page 4 position cards ---------- */

#orderPopup.order_overlay .page-4 .position-card {
    border-color: rgba(226, 232, 240, 0.8);
    box-shadow: var(--su-raise);
}

#orderPopup.order_overlay .page-4 .position-card.selected,
#orderPopup.order_overlay .page-4 .position-card.has-logo {
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(134, 186, 237, 0.45);
}

/* ---------- Reduced motion ---------- */

/* Only the lift/press of the controls styled here; page slides are untouched. */
@media (prefers-reduced-motion: reduce) {
    #orderPopup.order_overlay .order_close_btn,
    #orderPopup.order_overlay .pc-step-back,
    #orderPopup.order_overlay .btn-continue.next,
    #orderPopup.order_overlay .btn-nav.btn-next,
    #orderPopup.order_overlay .p1-action,
    #orderPopup.order_overlay .p2-continue-qty,
    #orderPopup.order_overlay .p2-filter-chip,
    #orderPopup.order_overlay .p3-btn-plain,
    #orderPopup.order_overlay .p3-btn-customize,
    #orderPopup.order_overlay .p3-continue-customise,
    #orderPopup.order_overlay .qty-btn,
    #orderPopup.order_overlay .page-4 .p4-btn-skip,
    #orderPopup.order_overlay .page-4 .p4-saved-logos {
        transition: none !important;
        transform: none !important;
    }
}

/* ---------- Colour step details ---------- */

/* Page navigation sits 4px under a clipped edge: keep its shadow below it. */
#orderPopup.order_overlay .pc-flow-page-nav .pc-step-back,
#orderPopup.order_overlay .pc-flow-page-nav .btn-continue,
#orderPopup.order_overlay .pc-flow-page-nav .btn-nav.btn-next,
#orderPopup.order_overlay .track > .page:first-child .btn-continue {
    box-shadow: var(--su-raise-tight);
}

/* Filter chips are 7px apart: no light spilling onto the neighbouring chip. */
#orderPopup.order_overlay .p2-filter-chip {
    box-shadow: var(--su-raise-tight);
}

#orderPopup.order_overlay .p2-filter-chip.is-active {
    box-shadow: var(--su-press);
}

/* Colour panel: no tray behind the colour groups. The two white groups
   float straight on the page background, with a small gap between them. */
#orderPopup.order_overlay .op-scroll-shell.p2-colour-scroll-shell {
    background: transparent;
    box-shadow: none;
    border-color: transparent;
}

#orderPopup.order_overlay .page-2 .p2-colour-scroll {
    gap: 14px;
    padding-bottom: 14px;
}

/* Tighter top/bottom spacing so both groups fit without being cut off:
   the "Popular colours" box shows its rounded bottom and its shadow. */
#orderPopup.order_overlay .page-2 .colour-section.p2-popular-section,
#orderPopup.order_overlay .page-2 .colour-section.p2-all-section {
    padding-bottom: 14px;
}

#orderPopup.order_overlay .page-2 .colour-section > .p2-grid-title {
    margin-top: 0;
}

#orderPopup.order_overlay .colour-section.p2-popular-section,
#orderPopup.order_overlay .colour-section.p2-all-section {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        6px 8px 14px rgba(51, 65, 85, 0.26),
        2px 3px 5px rgba(51, 65, 85, 0.16),
        inset 0 1px 1px #fff;
}

/* "More below" arrow: a round raised button. */
#orderPopup.order_overlay .op-scroll-more-below {
    background: var(--su-white);
    box-shadow: var(--su-raise-tight);
}

/* Colour preview photo sits in its own rounded tile, filling the frame. */
#orderPopup.order_overlay .p2-preview-frame > img {
    width: 100%;
    height: 100%;
    max-height: none;
    align-self: stretch;
    object-fit: contain;
    border-radius: 16px;
    background: #FFFFFF;
    outline: 1px solid rgba(203, 213, 225, 0.7);
    outline-offset: -1px;
}

/* Every step sits on the same grey-blue surface (page 2 was white), so the
   white panels and their light/shade edges read as floating. */
#orderPopup.order_overlay .page .page-content-wrapper {
    background: var(--su-surface);
}

/* The base stylesheet forces the Customise step white with !important. */
#orderPopup.order_overlay .page-4 .page-content-wrapper.p4-choose {
    background: var(--su-surface) !important;
}

/* The colour column clipped the panel's left and bottom shadow. */
#orderPopup.order_overlay .p2-colour-col {
    overflow: visible;
}

/* Columns and grids must not clip the panels' shadows, otherwise a hard
   vertical/horizontal edge appears and the background looks split in two.
   Scrolling still happens inside the panels' own scroll areas. */
#orderPopup.order_overlay .product-shop-layout,
#orderPopup.order_overlay .p2-colour-layout,
#orderPopup.order_overlay .p3-qty-layout,
#orderPopup.order_overlay .page-4 .p4-layout,
#orderPopup.order_overlay .page-4 .p4-main-col {
    overflow: visible;
}

/* The base stylesheet clips the quantity column with !important; its content
   never overflows (the size list scrolls inside its own area). */
#orderPopup.order_overlay .page-3 .p3-choose-qty .sizes-section-p3.p3-qty-col {
    overflow: visible !important;
}

/* ---------- Step 4: action buttons stacked in the right column ----------
   The three buttons leave the bottom row and stack under "Add your logo",
   their bottom edge level with the bottom of the positions panel. The notes
   textarea has a fixed 40px height, so the panel ends 67px above the column. */

@media (min-width: 769px) {
    #orderPopup.order_overlay .page-4 .p4-layout {
        grid-template-rows: minmax(0, 1fr);
    }

    #orderPopup.order_overlay .page-4 .p4-summary-col {
        grid-row: 1;
    }

    #orderPopup.order_overlay .page-4 .p4-footer-actions {
        grid-column: 3;
        grid-row: 1;
        align-self: end;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-bottom: 67px;
        padding: 0;
    }

    #orderPopup.order_overlay .page-4 .p4-footer-actions > * {
        width: 100%;
        max-width: none;
        height: 46px;
        min-height: 46px;
        flex-shrink: 0;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 700;
        text-transform: none;
        letter-spacing: 0;
    }

    #orderPopup.order_overlay .page-4 .p4-footer-actions #btnP4Next {
        order: 3;
        height: 46px;
        min-height: 46px;
        border-radius: 12px;
        font-size: 15px;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: #F97316;
        background-image: none;
        border: 0;
        color: #fff;
        box-shadow:
            4px 8px 14px rgba(234, 107, 25, 0.42),
            1px 2px 4px rgba(51, 65, 85, 0.22),
            inset 0 1px 1px rgba(255, 255, 255, 0.35);
    }

    #orderPopup.order_overlay .page-4 .p4-footer-actions #btnP4Next .p4-btn-arrow {
        color: #fff;
        stroke: #fff;
    }

    #orderPopup.order_overlay .page-4 .p4-footer-actions .p4-continue-shopping {
        order: 1;
        background: #fff;
        border: 1.5px dashed #C7CCD6;
        color: #1E2A5A;
        box-shadow: var(--su-raise-tight);
    }

    #orderPopup.order_overlay .page-4 .p4-footer-actions .p4-continue-shopping .p4-btn-icon {
        color: #1E2A5A;
        stroke: #1E2A5A;
    }

    #orderPopup.order_overlay .page-4 .p4-footer-actions .p4-share-basket {
        order: 2;
        background: #16804A;
        border: 0;
        color: #fff;
        box-shadow:
            4px 8px 14px rgba(22, 128, 74, 0.32),
            1px 2px 4px rgba(51, 65, 85, 0.2),
            inset 0 1px 1px rgba(255, 255, 255, 0.3);
    }

    #orderPopup.order_overlay .page-4 .p4-footer-actions .p4-share-basket .p4-btn-icon {
        color: #fff;
        stroke: #fff;
    }
}

/* ---------- Step 4: product name inside the photo box ----------
   The RX101 / Pro polo heading sits inside the photo box (left), with the
   photo on the right, so the box starts level with the positions area. */

#orderPopup.order_overlay .page-4 .p4-preview-frame {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
}

#orderPopup.order_overlay .page-4 .p4-preview-frame .p4-preview-head {
    flex: 1 1 auto;
    min-width: 0;
    align-self: flex-start;
    margin: 0;
    padding: 0;
}

#orderPopup.order_overlay .page-4 .p4-preview-frame > img {
    flex: 0 0 auto;
    max-width: 55%;
}

/* ---------- Step 4: every position is its own raised box ----------
   The big white panel goes; each position card floats on the page
   background with its own shadow. */

#orderPopup.order_overlay .page-4 .op-scroll-shell.p4-positions-scroll-shell {
    background: transparent;
    box-shadow: none;
    border-color: transparent;
}

#orderPopup.order_overlay .page-4 .positions-grid {
    gap: 16px !important;
    padding: 4px 10px 18px 4px;
}

#orderPopup.order_overlay .page-4 .position-card {
    padding: 10px 10px 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow:
        6px 8px 14px rgba(51, 65, 85, 0.26),
        2px 3px 5px rgba(51, 65, 85, 0.16),
        -5px -5px 12px rgba(255, 255, 255, 0.95),
        inset 0 1px 1px #fff !important;
}

#orderPopup.order_overlay .page-4 .position-card.selected,
#orderPopup.order_overlay .page-4 .position-card.has-logo {
    box-shadow:
        6px 8px 14px rgba(51, 65, 85, 0.26),
        2px 3px 5px rgba(51, 65, 85, 0.16),
        -5px -5px 12px rgba(255, 255, 255, 0.95),
        inset 0 0 0 2px rgba(134, 186, 237, 0.75) !important;
}

/* ---------- Step 3: "Buy it plain" and "Customise" ----------
   The older page-3 rules (#orderPopup .page-3 .p3-choose-qty .p3-action-row
   button) are more specific than the shared button rules above, so the two
   buttons get the same raised look again here. */

#orderPopup.order_overlay .page-3 .p3-choose-qty .p3-action-row .p3-btn-plain {
    border: 1px solid var(--su-line);
    border-radius: 12px;
    background: var(--su-white);
    color: var(--su-navy);
    box-shadow: var(--su-raise);
}

#orderPopup.order_overlay .page-3 .p3-choose-qty .p3-action-row .p3-btn-customize {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #EF7A2E 0%, var(--su-tangerine) 100%);
    color: var(--su-white);
    box-shadow: var(--su-primary-shadow);
}

@media (hover: hover) {
    #orderPopup.order_overlay .page-3 .p3-choose-qty .p3-action-row .p3-btn-plain:not(:disabled):hover {
        transform: translateY(-1px);
        background: var(--su-white);
        box-shadow: var(--su-raise-hover);
    }

    #orderPopup.order_overlay .page-3 .p3-choose-qty .p3-action-row .p3-btn-customize:not(:disabled):hover {
        transform: translateY(-1px);
        background: linear-gradient(180deg, #EA6B19 0%, var(--su-tangerine-dark) 100%);
    }
}

#orderPopup.order_overlay .page-3 .p3-choose-qty .p3-action-row .p3-btn-plain:not(:disabled):active {
    transform: translateY(1px);
    box-shadow: var(--su-press);
}

#orderPopup.order_overlay .page-3 .p3-choose-qty .p3-action-row .p3-btn-customize:not(:disabled):active {
    transform: translateY(1px);
    background: var(--su-tangerine-dark);
    box-shadow: inset 2px 2px 5px rgba(15, 23, 42, 0.22);
}

#orderPopup.order_overlay .page-3 .p3-choose-qty .p3-action-row .p3-btn-plain:disabled,
#orderPopup.order_overlay .page-3 .p3-choose-qty .p3-action-row .p3-btn-customize:disabled {
    box-shadow: none;
    transform: none;
}

#orderPopup.order_overlay .page-3 .p3-choose-qty .p3-action-row .p3-btn-customize:disabled {
    background: #E9ECF1;
    color: #8A94A6;
}

/* ---------- Step 3: volume pricing sits on the page background ----------
   Its wrapper had its own white fill, which showed as a white strip behind
   the "Volume pricing" title and under the tier cards. */

#orderPopup.order_overlay .page-3 .p3-choose-qty .p3-volume-anchor {
    background: transparent;
}

/* ---------- Step 4: "Not sure about your artwork?" in the left column ----------
   Moved under the colour/approval strip; it sits at the bottom of the left
   column as a small raised box. */

#orderPopup.order_overlay .page-4 .p4-summary-col .p4-artwork-help {
    margin-top: auto;
    margin-bottom: 67px;
    padding: 12px 14px;
    border-radius: 16px;
    box-shadow: var(--su-raise);
}

/* The left column's content fits its height; let the box shadows show. */
#orderPopup.order_overlay .page-4 .p4-summary-col {
    overflow: visible;
}

/* Step 4: the garment preview stays lifted, as it used to look only on hover. */
#orderPopup.order_overlay .page-4 .position-card .position-preview,
#orderPopup.order_overlay .page-4 .position-card .position-preview:hover {
    z-index: 2;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 16px rgb(15 23 42 / 14%);
    overflow: visible;
}

/* ---------- "Choose decoration" dialog: Screen print / Embroidery / DTF ----------
   The dialog is added to <body>, outside #orderPopup, so it is styled by id. */

#p4MethodModal {
    background: rgba(12, 20, 36, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

#p4MethodModal .p4-method-card {
    width: min(560px, 92vw);
    padding: 30px 26px 20px;
    border-radius: 28px;
    background: #fff;
    box-shadow:
        0 24px 60px rgba(12, 20, 36, 0.35),
        0 6px 14px rgba(12, 20, 36, 0.18),
        inset 0 1px 1px #fff;
}

#p4MethodModal .p4-method-card strong {
    font-size: 28px;
    color: #0C1E3B;
}

#p4MethodModal .p4-method-card > p {
    margin: 10px 0 22px;
    color: #334155;
    font-size: 16px;
}

#p4MethodModal .p4-method-card > p b {
    color: #0C1E3B;
}

#p4MethodModal .p4-method-choices {
    gap: 14px;
}

#p4MethodModal .p4-method-choice {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 112px;
    padding: 14px 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

/* The icon comes from the SVG now, not the old font icon. */
#p4MethodModal .p4-method-choice span::before {
    content: none;
}

#p4MethodModal .p4-method-icon {
    display: block;
    width: 30px;
    height: 30px;
    margin-bottom: 4px;
    font-style: normal;
}

#p4MethodModal .p4-method-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

#p4MethodModal .p4-method-choice span {
    font-size: 15px;
    letter-spacing: 0.01em;
}

#p4MethodModal .p4-method-choice em {
    margin-top: 0;
    font-size: 13px;
}

#p4MethodModal .p4-method-choice small {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
}

#p4MethodModal .p4-method-screen {
    background: linear-gradient(180deg, #2F86F0 0%, #1361D2 100%);
    color: #fff;
    box-shadow: 0 6px 0 #0E4CA8, 0 12px 22px rgba(19, 97, 210, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

#p4MethodModal .p4-method-embroidery {
    background: linear-gradient(180deg, #FFD54A 0%, #FFC107 100%);
    color: #0C1E3B;
    box-shadow: 0 6px 0 #E0A200, 0 12px 22px rgba(255, 193, 7, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

/* DTF is the regular print: blue, like the PRINT badge. */
#p4MethodModal .p4-method-print {
    background: linear-gradient(180deg, #2F86F0 0%, #1361D2 100%);
    color: #fff;
    border-color: #1361D2;
    box-shadow: 0 6px 0 #0E4CA8, 0 12px 22px rgba(19, 97, 210, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

#p4MethodModal .p4-method-choice:not(:disabled):hover {
    transform: translateY(-2px);
}

#p4MethodModal .p4-method-choice:not(:disabled):active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 rgba(12, 20, 36, 0.25), inset 0 2px 4px rgba(12, 20, 36, 0.15);
}

/* Locked screen print: grey, with "Min 25 pcs" underneath. */
#p4MethodModal .p4-method-choice.is-disabled {
    background: linear-gradient(180deg, #EEF0F3 0%, #E2E5EA 100%);
    color: #8A94A6;
    border-color: #E2E5EA;
    box-shadow: 0 4px 0 #CFD4DB, inset 0 1px 1px #fff;
    cursor: not-allowed;
}

#p4MethodModal .p4-method-choice.is-disabled small {
    color: #EA6B19;
    opacity: 1;
}

#p4MethodModal .p4-method-message {
    margin: 18px 4px 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: #FFF4EC;
    color: #9A3F06;
    font-size: 13px;
    line-height: 1.4;
}

#p4MethodModal .p4-method-message.is-unlocked {
    background: #ECFDF3;
    color: #157A45;
}

#p4MethodModal .p4-method-cancel {
    margin-top: 14px;
    padding: 6px 14px;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
}

#p4MethodModal .p4-method-choice:focus-visible,
#p4MethodModal .p4-method-cancel:focus-visible {
    outline: 2px solid #0C1E3B;
    outline-offset: 3px;
}

@media (max-width: 520px) {
    #p4MethodModal .p4-method-choices {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    #p4MethodModal .p4-method-choice {
        transition: none;
        transform: none !important;
    }
}

#p4MethodModal .p4-method-info {
    margin: 10px 4px 0;
    text-align: left;
    color: #475569;
    font-size: 12.5px;
    line-height: 1.45;
}

#p4MethodModal .p4-method-info summary {
    cursor: pointer;
    color: #1361D2;
    font-weight: 600;
    text-align: center;
}

#p4MethodModal .p4-method-info p {
    margin: 8px 0 0;
}
