/* Desktop-only product builder polish. Loaded by shop-pc.html only. */
#orderPopup {
    --pc-flow-ink: #111827;
    --pc-flow-muted: #667085;
    --pc-flow-line: #e3e8ef;
    --pc-flow-soft: #f6f8fb;
    --pc-flow-brand: #273469;
    --pc-flow-brand-dark: #1d2854;
    --pc-flow-accent: #9c27b0;
    --pc-flow-accent-dark: #7f1d8d;
    --pc-flow-accent-soft: #fbf5fc;
    --pc-flow-success: #159a58;
    box-sizing: border-box;
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

#orderPopup,
#orderPopup * {
    font-family: Inter, Arial, sans-serif;
}

body.popup-open {
    overflow: hidden !important;
}

#orderPopup .order_wrapper {
    width: min(1400px, calc(100vw - 48px));
    max-width: none;
    padding: 0;
}

#orderPopup .order_card {
    width: 100%;
    height: min(820px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

#orderPopup .order_close_btn {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 2px solid #e85d04;
    border-radius: 12px;
    background: #fff;
    color: #e85d04;
    box-shadow: none;
    font-size: 22px;
    line-height: 1;
    font-weight: 500;
}

#orderPopup .order_close_btn:hover,
#orderPopup .order_close_btn:focus-visible,
#orderPopup .order_close_btn:active {
    transform: none;
    background: #e85d04;
    border-color: #e85d04;
    color: #fff;
    box-shadow: none;
}

#orderPopup .order_close_btn svg {
    stroke: currentColor;
}

.pc-product-flow-header {
    min-height: 82px;
    padding: 15px 74px 14px 24px;
    display: grid;
    grid-template-columns: 236px minmax(560px, 1fr) 150px;
    align-items: center;
    gap: 24px;
    flex: 0 0 auto;
    border-bottom: 1px solid var(--pc-flow-line);
    background: #fff;
}

.pc-product-flow-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
    min-height: 56px;
    padding: 0 20px 0 0;
    border-right: 1px solid var(--pc-flow-line);
}

.pc-product-flow-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pc-product-flow-logo {
    width: 198px;
    height: 58px;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.pc-product-flow-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: -1px;
}

.pc-product-flow-brand-copy strong {
    color: #647084;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .08em;
    white-space: nowrap;
}

.pc-product-flow-brand-copy small,
.pc-product-flow-help span {
    color: var(--pc-flow-muted);
    font-size: 11px;
    line-height: 1.35;
}

.pc-product-progress {
    min-width: 0;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
}

.pc-product-progress li {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b95a5;
}

.pc-product-progress li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 37px;
    right: 9px;
    height: 1px;
    background: #dce1e8;
    z-index: 0;
}

.pc-progress-number {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid #d7dde6;
    border-radius: 50%;
    background: #fff;
    color: #7c8798;
    font-size: 12px;
    font-weight: 800;
}

.pc-product-progress li>span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pc-product-progress strong {
    color: inherit;
    font-size: 12px;
    line-height: 1.2;
}

.pc-product-progress small {
    overflow: hidden;
    color: inherit;
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-product-progress li.is-active,
.pc-product-progress li.is-complete {
    color: #111827;
}

.pc-product-progress li.is-complete {
    cursor: pointer;
}

.pc-product-progress li.is-active .pc-progress-number {
    border-color: #e85d04;
    background: #e85d04;
    color: #fff;
    box-shadow: none;
}

.pc-product-progress li.is-complete .pc-progress-number {
    border-color: #00c853;
    background: #00c853;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.22);
}

.pc-product-progress li.is-complete .pc-progress-number::before {
    content: '\2713';
}

.pc-product-progress li.is-complete .pc-progress-number {
    font-size: 0;
}

.pc-product-progress li.is-complete .pc-progress-number::before {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.pc-product-flow-help {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.pc-product-flow-help a {
    color: var(--pc-flow-brand);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.pc-popup-return-btn {
    display: none !important;
}

.pc-popup-return-btn:hover {
    background: #f8fafc;
    border-color: #cfd8e3;
    color: #0f172a;
}

#orderPopup .viewport {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    background: var(--pc-flow-soft);
}

#orderPopup .viewport>.track,
#orderPopup .page {
    height: 100%;
    min-height: 0;
}

#orderPopup .page {
    overflow: hidden;
}

#orderPopup .pc-flow-page-nav {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 20px;
    border-bottom: 1px solid var(--pc-flow-line);
    background: #fff;
}

#orderPopup .pc-flow-page-nav .pc-step-back,
#orderPopup .pc-flow-page-nav .btn-continue,
#orderPopup .pc-flow-page-nav .btn-next,
#orderPopup .pc-flow-page-nav .p4-btn-next,
#orderPopup .pc-flow-page-nav .p4-btn-skip {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    margin: 0;
}

#orderPopup .pc-flow-page-nav .pc-step-back,
#orderPopup .pc-flow-page-nav .btn-continue,
#orderPopup .pc-flow-page-nav .btn-next {
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #d8deea;
    border-radius: 10px;
    color: #1c2e65;
    background: #fff;
    box-shadow: none;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

#orderPopup .pc-flow-page-nav .pc-step-back:hover,
#orderPopup .pc-flow-page-nav .btn-continue:hover,
#orderPopup .pc-flow-page-nav .btn-next:hover {
    border-color: #aeb8cb;
    color: #1c2e65;
    background: #f8fafc;
    box-shadow: none;
    transform: translateY(-1px);
}

#orderPopup .pc-flow-page-nav .p4-btn-next {
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #f97316;
    border-radius: 10px;
    color: #fff;
    background: #f97316;
    box-shadow: none;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

#orderPopup .pc-flow-page-nav .p4-btn-next:hover {
    border-color: #ea6c0a;
    color: #fff;
    background: #ea6c0a;
    box-shadow: none;
    transform: translateY(-1px);
}

#orderPopup .pc-flow-page-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

#orderPopup .track > .page:first-child {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

/* Step 1: professional product overview */
#orderPopup .product-shop-layout {
    height: auto;
    min-height: 0;
    padding: 24px;
    grid-template-columns: minmax(300px, 360px) minmax(480px, 1.25fr);
    gap: 24px;
    background: var(--pc-flow-soft);
    align-items: stretch;
}

#orderPopup .product-gallery,
#orderPopup .product-shop-info {
    min-height: 0;
    border: 1px solid var(--pc-flow-line);
    border-radius: 12px;
    background: #fff;
}

#orderPopup .product-gallery {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

#orderPopup .product-main-image {
    position: relative;
    flex: 0 0 auto;
    height: 260px;
    max-height: 260px;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
}

#orderPopup .product-main-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    opacity: 1;
}

#orderPopup .product-thumbs-carousel {
    flex: 0 0 auto;
}

#orderPopup .product-accreditations {
    flex: 0 0 auto;
    margin-top: auto;
    width: 100%;
}

#orderPopup .product-accreditations-row {
    width: 100%;
}

#orderPopup .product-accreditation-badge img {
    height: 64px;
    max-width: 100%;
}

#orderPopup .product-accreditations-row--badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

#orderPopup .product-accreditation-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
}

#orderPopup .product-accreditation-logo img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 110px;
    object-fit: contain;
}

#orderPopup .product-accreditation-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f9fafb;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

#orderPopup .product-accreditation-chip::before {
    content: '';
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: currentColor no-repeat center / 9px 9px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5.2'/%3E%3C/svg%3E");
}

#orderPopup .product-accreditation-chip--eco {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

#orderPopup .product-accreditation-chip--vegan {
    border-color: #d9f99d;
    background: #f7fee7;
    color: #4d7c0f;
}

#orderPopup .product-accreditation-chip--safety {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

#orderPopup .product-accreditation-chip--ethical {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

#orderPopup .product-thumbs-carousel[hidden] {
    display: none !important;
}

#orderPopup .p1-desc-features {
    align-items: start;
}

#orderPopup .p1-feature-stack {
    margin-top: 0;
    padding-top: 2px;
}

#orderPopup .p1-keyinfo-text {
    -webkit-line-clamp: 5;
}

#orderPopup .product-gallery,
#orderPopup .product-thumbs-carousel,
#orderPopup .product-shop-info {
    scrollbar-width: none;
}

#orderPopup .product-gallery::-webkit-scrollbar,
#orderPopup .product-thumbs-carousel::-webkit-scrollbar,
#orderPopup .product-shop-info::-webkit-scrollbar {
    display: none;
}

#orderPopup .product-shop-info {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

#orderPopup .p1-header {
    position: relative;
    min-height: 68px;
    margin: 0 0 10px;
    text-align: left;
    padding-right: 170px;
}

#orderPopup .p1-code-line {
    justify-content: flex-start;
    margin: 0 0 7px;
}

#orderPopup .p1-divider {
    display: none;
}

#orderPopup .p1-code {
    color: var(--pc-flow-brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#orderPopup .p1-name {
    max-width: 720px;
    color: var(--pc-flow-ink);
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(21px, 1.45vw, 27px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
}

#orderPopup .p1-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: #596b91;
    font-size: 13px;
}

/* Only show when real review data is present — never display the rating UI as a fake fallback. */
#orderPopup .p1-rating[hidden] {
    display: none;
}

#orderPopup .p1-rating-stars {
    color: #f5b400;
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1;
}

#orderPopup .p1-header .p1-brand-block {
    position: absolute;
    top: 15px;
    right: 0;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#orderPopup .p1-rating-reviews {
    color: #62749a;
}

#orderPopup .p1-price-brand-row {
    min-height: 48px;
    margin: 0;
    padding: 7px 0;
    border-top: 1px solid var(--pc-flow-line);
    border-bottom: 1px solid var(--pc-flow-line);
}

#orderPopup .p1-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    gap: 10px;
    margin: 9px 0 10px;
}

#orderPopup .p1-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#orderPopup .p1-action > span {
    font-size: 19px;
    line-height: 1;
}

#orderPopup .p1-action-primary {
    border: 1px solid #e85d04;
    background: #e85d04;
    color: #fff;
    box-shadow: 0 6px 14px rgba(232, 93, 4, .22);
}

#orderPopup .p1-action-primary:hover {
    background: #d00000;
    border-color: #d00000;
    transform: translateY(-2px);
}

#orderPopup .p1-action-secondary {
    border: 1px solid #8ea0c5;
    background: #fbfcff;
    color: var(--pc-flow-brand);
}

#orderPopup .p1-action-secondary:hover {
    border-color: var(--pc-flow-brand);
    background: #f1f5ff;
    transform: translateY(-2px);
}

#orderPopup .p1-price-block {
    flex-wrap: wrap;
}

#orderPopup .p1-from {
    color: var(--pc-flow-muted);
    font-size: 14px;
}

#orderPopup .p1-price {
    color: var(--pc-flow-brand);
    font-size: 27px;
    letter-spacing: -.03em;
}

#orderPopup .p1-vat-label {
    align-self: flex-end;
    padding-bottom: 2px;
    color: var(--pc-flow-muted);
    font-size: 10px;
}

#orderPopup .p1-brand-logo {
    max-width: 150px;
    height: 34px;
}

#orderPopup .pc-price-breaks-heading {
    margin: 10px 0 5px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

#orderPopup .pc-price-breaks-heading span {
    color: var(--pc-flow-ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

#orderPopup .pc-price-breaks-heading small {
    color: var(--pc-flow-muted);
    font-size: 10px;
}

#orderPopup .pc-price-breaks {
    margin: 0 0 7px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
}

#orderPopup .pc-price-tier {
    min-width: 0;
    min-height: 76px;
    padding: 6px 3px 5px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 3px;
    border: 1px solid #eadfed;
    border-radius: 9px;
    background: #fff;
}

#orderPopup .pc-price-tier:first-child {
    border-color: var(--pc-flow-accent);
    background: #fff;
    box-shadow: inset 3px 0 0 var(--pc-flow-accent);
}

#orderPopup .pc-price-tier span {
    color: var(--pc-flow-brand);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

#orderPopup .pc-price-tier strong {
    color: var(--pc-flow-brand);
    font-size: 17px;
    white-space: nowrap;
}

#orderPopup .pc-price-tier small {
    color: #64748b;
    font-size: 10px;
}

#orderPopup .pc-price-tier em {
    padding: 3px 5px;
    border-radius: 7px;
    background: #ffc400;
    color: #152d69;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

#orderPopup .pc-price-tier:first-child {
    border-color: #d5deed;
    box-shadow: none;
}

#orderPopup .pc-price-tier {
    cursor: default;
}

#orderPopup .p1-spec-table {
    margin: 0 0 8px;
    border-top: 1px solid var(--pc-flow-line);
}

#orderPopup .p1-spec-row {
    grid-template-columns: 88px 1fr;
    padding: 5px 0;
    border-bottom: 1px solid #edf0f4;
}

#orderPopup .p1-spec-label {
    color: #7a8596;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

#orderPopup .p1-spec-value {
    color: #202939;
    font-size: 12px;
    line-height: 1.45;
}

#orderPopup .p1-keyinfo {
    margin: 0;
}

#orderPopup .p1-keyinfo-title {
    margin: 0 0 7px;
    color: var(--pc-flow-ink);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

#orderPopup .p1-keyinfo-divider {
    display: none;
}

#orderPopup .p1-keyinfo-text {
    display: -webkit-box;
    overflow: hidden;
    color: #3e4a5c;
    font-size: 11px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

#orderPopup .pc-product-assurance {
    margin: 3px 0 6px;
    padding: 7px 9px;
    gap: 7px;
}

#orderPopup .pc-product-assurance span {
    padding-left: 14px;
    font-size: 9px;
}

#orderPopup .pc-product-assurance strong {
    font-size: 9px;
}

#orderPopup .track > .page:first-child .btn-continue {
    min-height: 36px;
}

#orderPopup .pc-product-assurance {
    margin: auto 0 0;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    border: 1px solid #dcefe4;
    border-radius: 8px;
    background: #f4fbf7;
}

#orderPopup .pc-product-assurance span {
    position: relative;
    padding-left: 17px;
    color: #607064;
    font-size: 10px;
    line-height: 1.35;
}

#orderPopup .pc-product-assurance span::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--pc-flow-success);
    font-weight: 800;
}

#orderPopup .pc-product-assurance strong {
    display: block;
    color: #334a3d;
    font-size: 10px;
}

#orderPopup .btn-continue,
#orderPopup .btn-next,
#orderPopup .btn-add-quote {
    min-height: 46px;
    border: 0;
    border-radius: 7px;
    background: var(--pc-flow-brand);
    color: #fff;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
}

#orderPopup .p4-btn-next {
    min-height: 46px;
    border: 0;
    border-radius: 7px;
    background: #f97316;
    color: #fff;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
}

#orderPopup .btn-continue {
    margin-top: auto;
}

/* The first-page NEXT control follows the three states shown in the reference:
   outlined at rest, softly lit on hover, and solid navy while pressed. */
#orderPopup .track > .page:first-child .btn-continue {
    min-width: 122px;
    align-self: center;
    border: 1px solid var(--pc-flow-brand);
    background: #fff;
    color: var(--pc-flow-brand);
    box-shadow: none;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#orderPopup .track > .page:first-child .btn-continue:hover {
    background: #edf3ff;
    color: var(--pc-flow-brand);
    box-shadow: 0 8px 18px rgba(39, 52, 105, .18);
    transform: translateY(-3px);
}

#orderPopup .track > .page:first-child .btn-continue:active,
#orderPopup .track > .page:first-child .btn-continue.is-clicked {
    background: var(--pc-flow-brand);
    color: #fff;
    box-shadow: 0 4px 10px rgba(39, 52, 105, .2);
    transform: translateY(0);
}

#orderPopup .track > .page:first-child .btn-continue:focus-visible {
    outline: 3px solid rgba(39, 52, 105, .22);
    outline-offset: 3px;
}

/* Colour step: visual catalogue gallery with compact filters. */
#orderPopup .page-2 .page-content-wrapper {
    padding: 0;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#orderPopup .page-2 .p2-choose-colour {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#orderPopup .p2-nav-title {
    text-align: center;
    min-width: 0;
}

#orderPopup .p2-nav-title strong {
    display: block;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

#orderPopup .p2-nav-title small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}

#orderPopup .p2-colour-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 22px;
    min-height: 0;
    flex: 1 1 auto;
    padding: 8px 24px 10px;
    overflow: hidden;
}

#orderPopup .p2-preview-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

#orderPopup .p2-preview-frame {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    flex: 1 1 auto;
}

#orderPopup .p2-preview-frame img {
    max-width: 100%;
    max-height: 340px;
    width: auto;
    height: auto;
    object-fit: contain;
}

#orderPopup .p2-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#orderPopup .p2-preview-meta .p2-code {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
}

#orderPopup .p2-preview-meta .p2-name {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

#orderPopup .p2-size-line,
#orderPopup .p2-preview-hint {
    font-size: 12px;
    color: #6b7280;
}

#orderPopup .p2-preview-hint {
    color: #159a58;
}

#orderPopup .p2-colour-col {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Shared order-popup scroll affordance (Colour + Customise) */
#orderPopup .op-scroll-shell {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

#orderPopup .op-scroll {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 10px 18px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#orderPopup .op-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

#orderPopup .op-scroll-rail {
    flex: 0 0 18px;
    width: 18px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    background: linear-gradient(90deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.92));
    border-left: 1px solid rgba(229, 231, 235, 0.7);
}

#orderPopup .op-scroll-rail[hidden] {
    display: none !important;
}

#orderPopup .op-scroll-btn {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: rgba(107, 114, 128, 0.78);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.28);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

#orderPopup .op-scroll-btn svg {
    width: 10px;
    height: 10px;
}

#orderPopup .op-scroll-btn:hover:not(:disabled) {
    color: #e85d04;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(232, 93, 4, 0.28);
}

#orderPopup .op-scroll-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

#orderPopup .op-scroll-track {
    position: relative;
    flex: 1 1 auto;
    width: 4px;
    min-height: 40px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
    cursor: pointer;
}

#orderPopup .op-scroll-thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    min-height: 28px;
    border-radius: inherit;
    background: rgba(100, 116, 139, 0.42);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    cursor: grab;
    transition: background 0.15s ease;
}

#orderPopup .op-scroll-thumb:hover,
#orderPopup .op-scroll-thumb.is-dragging {
    background: rgba(232, 93, 4, 0.55);
}

#orderPopup .op-scroll-thumb.is-dragging {
    cursor: grabbing;
}

#orderPopup .op-scroll-more-below {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 6;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: rgba(107, 114, 128, 0.72);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.28), 0 4px 14px rgba(15, 23, 42, 0.08);
    transform: translateX(-50%);
    cursor: pointer;
    opacity: 0.82;
    transition: opacity 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    pointer-events: auto;
}

#orderPopup .op-scroll-more-below svg {
    width: 14px;
    height: 14px;
}

#orderPopup .op-scroll-more-below:hover {
    opacity: 1;
    color: #e85d04;
    background: rgba(255, 255, 255, 0.95);
}

#orderPopup .op-scroll-more-below[hidden] {
    display: none !important;
}

#orderPopup .op-scroll-shell.is-overflowing::after {
    content: "";
    position: absolute;
    left: 0;
    right: 18px;
    bottom: 0;
    height: 28px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.92));
    opacity: 0;
    transition: opacity 0.18s ease;
}

#orderPopup .op-scroll-shell.has-more-below::after {
    opacity: 1;
}

#orderPopup .p2-grid-title {
    margin: 10px 0 10px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

#orderPopup .p2-popular-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

#orderPopup .p2-colour-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 10px 24px 14px;
    border-top: 1px solid #e8ebf0;
    flex: 0 0 auto;
}

#orderPopup .p2-selected-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

#orderPopup .p2-selected-thumb {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    border: 1px solid #e5e7eb;
}

#orderPopup .page-2 .p2-preview-col .p2-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}

#orderPopup .page-2 .p2-preview-col .p2-brand-logo {
    max-height: 22px;
    width: auto;
}

#orderPopup .page-2 .pc-flow-page-nav .btn-next {
    flex: 0 0 auto;
    width: auto;
    min-width: 196px;
    min-height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: #eef0f3;
    color: #b4bac3;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

#orderPopup .page-2 .pc-flow-page-nav .btn-next:hover {
    background: #e8eaee;
    color: #9aa3af;
    box-shadow: none;
}

#orderPopup .p2-continue-qty {
    flex: 0 0 auto;
    width: auto;
    min-width: 260px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 6px;
    background: #e85d04;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

#orderPopup .p2-continue-qty:hover {
    background: #d34f00;
}

#orderPopup .p2-select-wrap {
    display: none;
}

#orderPopup .page-2 .p2-identity-bar {
    display: none;
}

#orderPopup .page-2 .pc-step-back {
    display: inline-flex;
}

#orderPopup .p2-colour-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    min-height: 64px;
    margin-bottom: 10px;
    flex: 0 0 auto;
}

#orderPopup .p2-filter-group {
    min-width: 0;
    flex: 1 1 auto;
}

#orderPopup .p2-filter-title,
#orderPopup .p2-select-wrap > span {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 15px;
    font-weight: 500;
}

#orderPopup .p2-filter-options {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

#orderPopup .p2-filter-chip,
#orderPopup .p2-filter-reset {
    min-height: 24px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #bfc5ce;
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none;
}

#orderPopup .p2-filter-chip.is-active,
#orderPopup .p2-filter-chip:hover,
#orderPopup .p2-filter-reset:hover {
    border-color: var(--pc-flow-brand);
    background: #f4f6fb;
}

#orderPopup .p2-filter-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border: 1px solid rgba(15, 23, 42, .25);
    border-radius: 50%;
}

#orderPopup .p2-filter-reset {
    margin-left: auto;
    padding-inline: 10px;
}

#orderPopup .p2-filter-reset span {
    font-size: 17px;
    line-height: .8;
}

#orderPopup .p2-select-wrap {
    width: 258px;
    flex: 0 0 258px;
}

#orderPopup #p2ColourSelect {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #bfc5ce;
    border-radius: 0;
    background: #fff;
    color: #374151;
    font-size: 13px;
}

#orderPopup .page-2 .colour-section {
    display: block;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

#orderPopup .page-2 .section-label {
    display: none;
}

#orderPopup .page-2 .p2-all-section {
    overflow: visible;
}

#orderPopup .p2-all-carousel {
    position: relative;
    min-width: 0;
    padding: 0 18px;
    overflow: visible;
}

#orderPopup .p2-colour-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 29px;
    height: 29px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #e85d04;
    color: #fff;
    box-shadow: 0 2px 8px rgba(232, 93, 4, 0.28);
    cursor: pointer;
    transform: translateY(-50%);
}

#orderPopup .p2-colour-arrow svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
}

#orderPopup .p2-colour-arrow-prev {
    left: -10px;
}

#orderPopup .p2-colour-arrow-next {
    right: -10px;
}

#orderPopup .p2-colour-arrow:hover:not(:disabled) {
    background: #d34f00;
    color: #fff;
}

#orderPopup .p2-colour-arrow:disabled {
    background: #e85d04;
    color: #fff;
    opacity: 1;
    cursor: default;
}

#orderPopup .p2-colour-arrow[hidden] {
    display: none !important;
}

#orderPopup .page-2 .colour-swatch-item.p2-off-page {
    display: none !important;
}

#orderPopup .page-2 .p2-all-viewport {
    overflow: hidden !important;
    width: 100%;
}

#orderPopup .p2-all-track {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
    left: 0;
    width: 100%;
    will-change: left;
}

#orderPopup .page-2 .p2-all-page {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
}

#orderPopup .p2-all-hidden {
    display: none !important;
}

#orderPopup .page-2 #colourSwatches,
#orderPopup .page-2 .colour-swatches-wrapper {
    display: block;
    max-height: none;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
}

#orderPopup .page-2 .colour-swatches-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: start;
}

#orderPopup .page-2 .colour-swatch-item,
#orderPopup .page-2 .colour-swatch-item:hover,
#orderPopup .page-2 .colour-swatch-item.selected {
    position: relative;
    min-width: 0;
    min-height: 120px;
    padding: 8px 2px 4px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    transform: none;
}

#orderPopup .page-2 .colour-swatch-item[hidden] {
    display: none !important;
}

#orderPopup .page-2 .swatch-checkbox,
#orderPopup .page-2 .swatch-view-btn {
    display: none;
}

#orderPopup .page-2 .swatch-thumb {
    width: 100%;
    height: 76px;
    border: 1px solid transparent;
    border-radius: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#orderPopup .page-2 .swatch-name {
    width: 100%;
    min-height: 28px;
    overflow: hidden;
    color: #111827;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    text-overflow: ellipsis;
}

#orderPopup .page-2 .colour-swatch-item:hover .swatch-thumb {
    border-color: #fdba74;
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

#orderPopup .page-2 .colour-swatch-item.selected .swatch-thumb {
    outline: none;
    border-color: #e85d04;
    background-color: #fff7ed;
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.14);
}

#orderPopup .page-2 .colour-swatch-item.selected {
    z-index: 4;
    box-shadow: none;
}

#orderPopup .page-2 .colour-swatch-item.selected::after {
    content: '\2713';
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 5;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #e85d04;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

#orderPopup .page-2 .page-nav-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #edf0f4;
}

#orderPopup .page-2 .page-nav-buttons .btn-back {
    display: none;
}

#orderPopup .page-2 .page-nav-buttons .btn-next {
    min-height: 34px;
    padding: 0 18px;
    border-radius: 5px;
    font-size: 12px;
}

/* Quantity step: product preview on the left, sizing and volume discount on the right. */
#orderPopup .page-3 .p3-page-wrapper {
    display: grid;
    grid-template-columns: minmax(290px, .74fr) minmax(0, 1.26fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: 16px;
    row-gap: 10px;
    padding: 18px 20px 12px;
    overflow: hidden;
    background: #f3f5f8;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    align-items: stretch;
}

#orderPopup .page-3 .p3-back-colour {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    min-height: 28px;
    margin: 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--pc-flow-brand);
    font-size: 13px;
    font-weight: 800;
}

#orderPopup .page-3 .p3-product-preview {
    grid-column: 1;
    grid-row: 2 / 4;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 1px solid #e6ebf1;
    border-radius: 12px;
    overflow: hidden;
    align-self: stretch;
}

#orderPopup .page-3 .p3-preview-header {
    min-height: 54px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 0;
    background: transparent;
}

#orderPopup .page-3 .p3-preview-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 2px;
}

#orderPopup .page-3 .p3-preview-code {
    color: var(--pc-flow-brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-align: left;
}

#orderPopup .page-3 .p3-preview-name {
    overflow: hidden;
    color: #122961;
    font-size: 16px;
    line-height: 1.15;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#orderPopup .page-3 .p3-preview-colour {
    color: #71809b;
    font-size: 11px;
    text-align: left;
}

#orderPopup .page-3 .p3-preview-brand-logo {
    width: 124px;
    max-height: 38px;
    flex: 0 0 auto;
    display: none;
    object-fit: contain;
}

#orderPopup .page-3 .p3-product-image-frame {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #fff;
    padding: 8px 8px 0;
}

#orderPopup .page-3 #p3ProductImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    filter: none;
}

#orderPopup .page-3 .selected-colour-bar {
    min-height: 52px;
    margin: 0 10px 10px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #dcece2;
    border-radius: 8px;
    background: #f3fbf7;
}

#orderPopup .page-3 .selected-colour-bar-left {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
}

#orderPopup .page-3 .selected-colour-bar-left strong {
    color: #6b7890;
    font-weight: 500;
}

#orderPopup .page-3 .selected-colour-change,
#orderPopup .page-3 .selected-colour-view {
    display: none;
}

#orderPopup .page-3 .sizes-section-p3 {
    grid-column: 2;
    grid-row: 1 / 3;
    min-height: 0;
    margin: 0;
    padding: 18px 18px 12px;
    overflow: hidden;
    border: 1px solid #dfe5ed;
    border-radius: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: stretch;
}

#orderPopup .page-3 .sizes-header {
    display: block;
}

#orderPopup .page-3 .sizes-title {
    margin: 0;
    color: #122961;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 800;
}

#orderPopup .page-3 .sizes-meta {
    display: block;
    margin: 6px 0 18px;
    color: #71809b;
    font-size: 14px;
}

#orderPopup .page-3 .sizes-meta .sizes-delivery {
    display: none;
}

#orderPopup .page-3 .discount-tiers {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    margin-top: 2px;
}

#orderPopup .page-3 .discount-tier-card {
    min-height: 72px;
    padding: 8px 4px 6px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    border: 1px solid #d9e1ed;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

#orderPopup .page-3 .discount-tier-card.tier-active {
    border: 2px solid #9ca3af;
    background: #f3f4f6;
}

#orderPopup .page-3 .discount-tier-card .tier-qty,
#orderPopup .page-3 .discount-tier-card .tier-price,
#orderPopup .page-3 .discount-tier-card .tier-label,
#orderPopup .page-3 .discount-tier-card .tier-save {
    color: #122961;
}

#orderPopup .page-3 .discount-tier-card.tier-active .tier-qty,
#orderPopup .page-3 .discount-tier-card.tier-active .tier-price,
#orderPopup .page-3 .discount-tier-card.tier-active .tier-label {
    color: #122961;
}

#orderPopup .page-3 .discount-tier-card .tier-qty {
    font-size: 11px;
    font-weight: 800;
}

#orderPopup .page-3 .discount-tier-card .tier-price {
    font-size: 16px;
    font-weight: 900;
}

#orderPopup .page-3 .discount-tier-card .tier-label {
    font-size: 9px;
}

#orderPopup .page-3 .discount-tier-card .tier-save {
    padding: 2px 6px;
    border-radius: 7px;
    background: #ffc400;
    color: #122961;
    font-size: 8px;
    font-weight: 900;
}

#orderPopup .page-3 #sizeQtyGridP3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin: 0;
}

#orderPopup .page-3 .size-qty-box-p3 {
    min-height: 98px;
    padding: 12px 12px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: center;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fff;
}

#orderPopup .page-3 .size-name-p3 {
    grid-column: 1;
    color: #122961;
    font-size: 20px;
    font-weight: 800;
}

#orderPopup .page-3 .size-price-p3 {
    grid-column: 1;
    color: #122961;
    font-size: 15px;
    font-weight: 700;
}

#orderPopup .page-3 .size-stock-p3 {
    grid-column: 1;
    color: #71809b;
    font-size: 11px;
}

#orderPopup .page-3 .size-qty-box-p3 .qty-controls {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 8px;
    background: #f8fafc;
}

#orderPopup .page-3 .size-qty-box-p3 .qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #dbe3ee;
    border-radius: 50%;
    background: #fff;
    color: #5b6a7d;
    font-size: 20px;
    line-height: 1;
    box-shadow: none;
}

#orderPopup .page-3 #sizeQtyGridP3 .qty-input {
    width: 38px;
    min-width: 38px;
    height: 30px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
    text-align: center;
    color: #122961;
    font-weight: 700;
}

#orderPopup .page-3 .sizes-hint {
    margin: 10px 0 0;
    color: #71809b;
    font-size: 11px;
    text-align: right;
}

#orderPopup .page-3 > .page-content-wrapper > .btn-add-quote {
    grid-column: 2;
    grid-row: 3;
    width: 220px;
    min-height: 44px;
    justify-self: end;
    margin: 0;
    border-radius: 8px;
    background: var(--pc-flow-brand);
    font-size: 16px;
}

#orderPopup .btn-continue:hover,
#orderPopup .btn-add-quote:hover,
#orderPopup .page:not(.page-2) .btn-next:hover {
    transform: none;
    background: var(--pc-flow-brand-dark);
    box-shadow: 0 6px 16px rgba(39, 52, 105, .18);
}

#orderPopup .p4-btn-next:hover {
    transform: none;
    background: #ea6c0a;
    box-shadow: 0 6px 16px rgba(249, 115, 22, .22);
}

/* Shared selection steps */
#orderPopup .page-content-wrapper {
    padding: 22px 24px 18px;
    background: var(--pc-flow-soft);
}

#orderPopup .p2-identity-bar {
    min-height: 58px;
    margin: 0 0 16px;
    padding: 11px 15px;
    border: 1px solid var(--pc-flow-line);
    border-radius: 8px;
    background: #fff;
}

#orderPopup .p2-code {
    color: var(--pc-flow-brand);
    font-size: 11px;
    letter-spacing: .08em;
}

#orderPopup .p2-name {
    max-width: 720px;
    overflow: hidden;
    color: var(--pc-flow-ink);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#orderPopup .section-label {
    margin: 0 0 12px;
    color: var(--pc-flow-ink);
    font-size: 18px;
}

#orderPopup .step-badge {
    width: 24px;
    height: 24px;
    background: var(--pc-flow-accent);
    font-size: 11px;
}

#orderPopup .colour-section {
    min-height: 0;
    margin: 0;
    padding: 18px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pc-flow-line);
    border-radius: 10px;
    background: #fff;
}

#orderPopup .page-2 .page-content-wrapper {
    overflow: hidden;
}

#orderPopup #colourSwatches {
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
}

#orderPopup .colour-swatches-wrapper {
    max-height: none;
    min-height: 0;
    margin: 0;
    padding-right: 9px;
    flex: 1 1 auto;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #9b75a4 #f3edf5;
}

#orderPopup .colour-swatches-wrapper::-webkit-scrollbar {
    width: 9px;
}

#orderPopup .colour-swatches-wrapper::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #f3edf5;
}

#orderPopup .colour-swatches-wrapper::-webkit-scrollbar-thumb {
    border: 2px solid #f3edf5;
    border-radius: 999px;
    background: #9b75a4;
}

/* One clear action is faster than the legacy incremental reveal plus view-all pair. */
#orderPopup .show-more-btn,
#orderPopup .view-all-colours-btn {
    display: none !important;
}

#orderPopup .colour-swatch-item.hidden {
    display: flex !important;
}

#orderPopup .colour-swatches-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

#orderPopup .colour-swatch-item {
    min-height: 58px;
    padding: 7px 9px;
    border: 1px solid var(--pc-flow-line);
    border-radius: 7px;
    color: var(--pc-flow-ink);
}

#orderPopup .colour-swatch-item:hover {
    border-color: #aeb8c7;
    box-shadow: 0 3px 9px rgba(15, 23, 42, .07);
}

#orderPopup .colour-swatch-item.selected {
    border-color: var(--pc-flow-accent);
    background: var(--pc-flow-accent-soft);
    box-shadow: inset 0 0 0 1px var(--pc-flow-accent);
}

#orderPopup .swatch-checkbox {
    border-radius: 50%;
}

#orderPopup .colour-swatch-item.selected .swatch-checkbox {
    border-color: var(--pc-flow-accent);
    background: var(--pc-flow-accent);
}

#orderPopup .swatch-name {
    color: var(--pc-flow-ink);
    font-weight: 700;
}

#orderPopup .swatch-thumb {
    border: 1px solid #d7dce4;
    background-color: #fff;
    opacity: 1;
}

#orderPopup .page-nav-buttons,
#orderPopup .p4-nav {
    margin-top: 12px;
    padding: 12px 0 0;
    gap: 10px;
    border-top: 1px solid var(--pc-flow-line);
    background: var(--pc-flow-soft);
}

#orderPopup .btn-nav,
#orderPopup .p4-btn-back,
#orderPopup .p4-btn-skip {
    min-height: 46px;
    border-radius: 7px;
    font-size: 13px;
}

#orderPopup .btn-back,
#orderPopup .p4-btn-back,
#orderPopup .p4-btn-skip {
    border: 1px solid #ccd3de;
    background: #fff;
    color: #465166;
}

#orderPopup .btn-back:hover,
#orderPopup .p4-btn-back:hover,
#orderPopup .p4-btn-skip:hover {
    transform: none;
    border-color: #9aa5b5;
    background: #f8f9fb;
}

/* Quantity step */
#orderPopup .selected-colour-bar {
    margin: 14px 18px 10px;
    padding: 9px 12px;
    border: 1px solid #bfe7d1;
    border-radius: 8px;
    background: #f3fbf7;
}

#orderPopup .selected-colour-change {
    padding: 7px 13px;
    border: 1px solid #cbd2dc;
    border-radius: 6px;
    background: #fff;
    color: var(--pc-flow-brand);
    font-weight: 700;
}

#orderPopup .selected-colour-change:hover {
    background: #f8f9fb;
}

#orderPopup .sizes-section-p3 {
    margin: 0 18px 10px;
    padding: 16px;
    border: 1px solid var(--pc-flow-line);
    border-radius: 10px;
    background: #fff;
}

#orderPopup .sizes-title {
    color: var(--pc-flow-ink);
    font-size: 18px;
}

#orderPopup .discount-tier-card {
    border: 1px solid #dfe5ed;
    border-radius: 7px;
    background: #fff;
}

#orderPopup .discount-tier-card .tier-qty,
#orderPopup .discount-tier-card .tier-pct,
#orderPopup .discount-tier-card .tier-label {
    color: var(--pc-flow-accent-dark);
}

#orderPopup .discount-tier-card.tier-active {
    transform: none;
    border: 2px solid #9ca3af;
    background: #f3f4f6;
    box-shadow: none;
}

#orderPopup .discount-tier-card.tier-active .tier-qty,
#orderPopup .discount-tier-card.tier-active .tier-pct,
#orderPopup .discount-tier-card.tier-active .tier-label {
    color: #122961;
}

#orderPopup .size-qty-box-p3 {
    min-height: 105px;
    border: 1px solid var(--pc-flow-line);
    border-radius: 8px;
}

#orderPopup .size-qty-box-p3:hover {
    border-color: #9baac0;
    box-shadow: none;
}

#orderPopup .size-qty-box-p3.has-qty {
    border: 2px solid #6b7280;
    background: #f3f4f6;
    box-shadow: none;
}

#orderPopup .qty-btn {
    border-radius: 6px;
    background: var(--pc-flow-brand);
}

#orderPopup #sizeQtyGridP3 .qty-input {
    width: 76px;
    min-width: 76px;
    height: 40px;
    padding: 0 6px;
    overflow: visible;
    border: 2px solid #d7dce5;
    background: #fff;
    color: var(--pc-flow-ink) !important;
    -webkit-text-fill-color: var(--pc-flow-ink);
    opacity: 1 !important;
    font-size: 18px;
    font-weight: 800;
    line-height: 36px;
    appearance: textfield;
    -moz-appearance: textfield;
}

#orderPopup #sizeQtyGridP3 .qty-input::-webkit-inner-spin-button,
#orderPopup #sizeQtyGridP3 .qty-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

#orderPopup #sizeQtyGridP3 .qty-input:focus {
    border-color: var(--pc-flow-accent);
    box-shadow: 0 0 0 3px rgba(156, 39, 176, .12);
}

#orderPopup .btn-add-quote {
    width: calc(100% - 36px);
    margin: 0 18px 12px;
}

#orderPopup .add-quote-success {
    margin: 0 18px 12px;
    padding: 10px;
    border: 1px solid var(--pc-flow-line);
    border-radius: 9px;
    background: #fff;
}

#orderPopup .btn-add-logo {
    background: var(--pc-flow-brand);
}

#orderPopup .btn-add-logo:hover {
    transform: none;
    background: var(--pc-flow-brand-dark);
    box-shadow: none;
}

/* Legacy position/method steps retain their logic but use the same visual system. */
#orderPopup .page-4 .page-content-wrapper,
#orderPopup .page-5 .page-content-wrapper {
    padding: 18px 22px 0;
    background: var(--pc-flow-soft);
}

#orderPopup .page-4 .positions-grid,
#orderPopup .p5-method-grid,
#orderPopup .p5-assignment-grid {
    gap: 10px;
}

#orderPopup .page-4 .position-card,
#orderPopup .p5-method-card,
#orderPopup .p5-assignment-card {
    border: 1px solid var(--pc-flow-line);
    border-radius: 9px;
    box-shadow: none;
}

#orderPopup .page-4 .position-card:hover,
#orderPopup .page-4 .position-card.selected,
#orderPopup .p5-method-card:hover,
#orderPopup .p5-method-card.selected,
#orderPopup .p5-assignment-card:hover,
#orderPopup .p5-assignment-card.selected {
    transform: none;
    border-color: var(--pc-flow-brand);
    background: #f6f7fb;
    box-shadow: inset 0 0 0 1px var(--pc-flow-brand);
}

/* The embedded design studio owns the fourth progress step. */
#orderPopup.pc-customizer-active .pc-product-flow-header {
    display: none;
}

@media (max-width: 1180px) {
    .pc-product-flow-header {
        grid-template-columns: 220px 1fr;
    }

    .pc-product-flow-brand {
        padding-right: 16px;
    }

    .pc-product-flow-logo {
        width: 172px;
        height: 52px;
    }

    .pc-product-flow-help {
        display: none;
    }

    #orderPopup .product-shop-layout {
        grid-template-columns: minmax(320px, .85fr) minmax(430px, 1.15fr);
    }

    #orderPopup .colour-swatches-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-height: 760px) {
    #orderPopup {
        padding: 12px;
    }

    #orderPopup .order_card {
        height: calc(100vh - 24px);
        min-height: 560px;
    }

    .pc-product-flow-header {
        min-height: 70px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #orderPopup .product-shop-layout {
        padding: 16px;
        gap: 16px;
    }

    #orderPopup .product-shop-info {
        padding: 20px 22px;
    }

    #orderPopup .pc-product-assurance {
        display: none;
    }
}

/* Final quantity-step alignment. */
#orderPopup .page-3 .p3-page-wrapper {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
}

#orderPopup .page-3 .p3-product-preview {
    grid-row: 2 / 5;
}

#orderPopup .page-3 .sizes-section-p3 {
    grid-row: 1 / 3;
}

#orderPopup .page-3 .p3-bottom-bar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 58px;
    padding: 16px 18px 14px;
    border: 1px solid #dfe5ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
    align-self: stretch;
}

#orderPopup .page-3 .p3-total-summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    flex: 1 1 auto;
    min-height: 36px;
    color: #71809b;
    font-size: 12px;
}

#orderPopup .page-3 .p3-total-summary strong {
    color: #122961;
    font-size: 15px;
}

#orderPopup .page-3 .p3-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 38%;
    max-width: 38%;
    width: 38%;
    margin-left: auto;
}

#orderPopup .page-3 .p3-action-row button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 45px;
    margin: 0;
    width: auto;
}

#orderPopup .page-3 > .page-content-wrapper > .btn-add-quote {
    display: none;
}

/* Compact enterprise quantity step */
#orderPopup .page-3 .p3-page-wrapper {
    gap: 10px;
    padding: 16px 28px 18px;
}

#orderPopup .page-3 .p3-back-colour {
    display: inline-flex;
    min-height: 36px;
    margin: 0;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 13px;
}

#orderPopup .page-3 .selected-colour-bar {
    min-height: 50px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #cce9d9;
    border-radius: 9px;
    background: #f5fbf8;
}

#orderPopup .page-3 .selected-colour-bar-left {
    gap: 9px;
    font-size: 14px;
}

#orderPopup .page-3 .selected-colour-thumb {
    width: 34px;
    height: 34px;
    border-radius: 6px;
}

#orderPopup .page-3 .sizes-section-p3 {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    padding: 16px 18px 14px;
    overflow-y: auto;
    border: 1px solid #dfe5ed;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
    scrollbar-gutter: auto;
    scrollbar-width: thin;
}

#orderPopup .page-3 .sizes-section-p3::-webkit-scrollbar {
    width: 7px;
}

#orderPopup .page-3 .sizes-section-p3::-webkit-scrollbar-track {
    background: transparent;
}

#orderPopup .page-3 .sizes-section-p3::-webkit-scrollbar-thumb {
    border: 2px solid #fff;
    background: #b7c0ce;
}

#orderPopup .page-3 .sizes-title {
    margin: 0 0 5px;
    color: #182230;
    font-size: 17px;
    line-height: 1.25;
}

#orderPopup .page-3 .sizes-meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 10px;
}

#orderPopup .page-3 .sizes-meta span {
    font-size: 12px;
}

#orderPopup .page-3 .discount-tiers {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    margin: 0 0 12px;
    overflow: visible;
}

#orderPopup .page-3 .discount-tier-card {
    display: flex;
    min-width: 0;
    min-height: 64px;
    flex-direction: column;
    justify-content: center;
    padding: 6px 5px;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

#orderPopup .page-3 .discount-tier-card .tier-qty {
    margin: 0 0 2px;
    font-size: 10px;
    letter-spacing: .02em;
}

#orderPopup .page-3 .discount-tier-card .tier-price {
    margin: 0;
    color: #202939;
    font-size: 15px;
    line-height: 1.15;
}

#orderPopup .page-3 .discount-tier-card .tier-label {
    margin: 1px 0 0;
    font-size: 9px;
}

#orderPopup .page-3 .discount-tier-card .tier-save {
    margin: 2px 0 0;
    color: #667085;
    font-size: 9px;
    line-height: 1.1;
}

#orderPopup .page-3 .discount-tier-card.tier-active {
    transform: none;
    border: 2px solid #9ca3af;
    background: #f3f4f6;
    box-shadow: none;
}

#orderPopup .page-3 .discount-tier-card.tier-active .tier-price,
#orderPopup .page-3 .discount-tier-card.tier-active .tier-save {
    color: #122961;
}

#orderPopup .page-3 #sizeQtyGridP3,
#orderPopup .page-3 .size-quantity__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

#orderPopup .page-3 .size-qty-box-p3,
#orderPopup .page-3 .size-quantity__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    min-width: 0;
    min-height: 67px;
    padding: 9px 11px 9px 17px;
    border: 1px solid #d8e3f4;
    border-radius: 13px;
    background: #fff;
    transition: border-color 150ms ease, background-color 150ms ease;
}

#orderPopup .page-3 .size-qty-box-p3:hover {
    border-color: #9baac0;
    background: #f8fafc;
    box-shadow: none;
}

#orderPopup .page-3 .size-qty-box-p3.has-qty,
#orderPopup .page-3 .size-quantity__row[data-selected="true"],
#orderPopup .page-3 .size-qty-box-p3.has-qty:hover {
    border: 2px solid #6b7280;
    background: #f3f4f6;
    box-shadow: none;
}

#orderPopup .page-3 .size-name-p3,
#orderPopup .page-3 .size-quantity__label {
    min-width: 0;
    margin: 0;
    color: #17243b;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    text-align: left;
}

#orderPopup .page-3 .size-price-p3,
#orderPopup .page-3 .size-stock-p3 {
    display: none !important;
}

#orderPopup .page-3 .size-qty-box-p3 .qty-controls,
#orderPopup .page-3 .size-quantity__counter {
    display: grid;
    grid-template-columns: 38px 46px 38px;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 11px;
    background: #f2f5fa;
}

#orderPopup .page-3 .size-qty-box-p3 .qty-btn,
#orderPopup .page-3 .size-quantity__button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d8e3f4;
    border-radius: 8px;
    background: #fff;
    color: #234a7c;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

#orderPopup .page-3 .size-qty-box-p3 .qty-btn:hover:not(:disabled),
#orderPopup .page-3 .size-quantity__button:hover:not(:disabled) {
    background: #e9effa;
}

#orderPopup .page-3 .size-qty-box-p3 .qty-btn:disabled,
#orderPopup .page-3 .size-quantity__button:disabled {
    opacity: 0.4;
    cursor: default;
}

#orderPopup .page-3 #sizeQtyGridP3 .qty-input,
#orderPopup .page-3 .size-quantity__input {
    width: 46px;
    min-width: 46px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #17243b !important;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    line-height: 38px;
    text-align: center;
    appearance: textfield;
    box-shadow: none;
}

#orderPopup .page-3 #sizeQtyGridP3 .qty-input::-webkit-inner-spin-button,
#orderPopup .page-3 #sizeQtyGridP3 .qty-input::-webkit-outer-spin-button,
#orderPopup .page-3 .size-quantity__input::-webkit-inner-spin-button,
#orderPopup .page-3 .size-quantity__input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

#orderPopup .page-3 .size-qty-box-p3 .qty-btn:focus-visible,
#orderPopup .page-3 #sizeQtyGridP3 .qty-input:focus-visible,
#orderPopup .page-3 .size-quantity__button:focus-visible,
#orderPopup .page-3 .size-quantity__input:focus-visible {
    outline: 2px solid #8923a0;
    outline-offset: 2px;
}

#orderPopup .page-3 .sizes-hint {
    margin: 9px 0 0;
    font-size: 10px;
}

#orderPopup .page-3 > .page-content-wrapper > .btn-add-quote {
    width: auto;
    min-width: 240px;
    min-height: 46px;
    align-self: flex-end;
    margin: 0;
    padding: 11px 28px;
    position: static;
    border-radius: 8px;
    background: var(--pc-flow-brand);
    box-shadow: none;
}

#orderPopup .page-3 > .page-content-wrapper > .btn-add-quote:hover {
    background: var(--pc-flow-brand-dark);
    box-shadow: 0 4px 10px rgba(39, 52, 105, .16);
}

#orderPopup .page-3 .add-quote-success {
    display: grid;
    grid-template-columns: .85fr 1fr 1fr 1.15fr;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 9px;
    position: static;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #fff;
}

#orderPopup .page-3 .btn-added-confirm,
#orderPopup .page-3 .btn-add-logo,
#orderPopup .page-3 .btn-keep-shopping,
#orderPopup .page-3 .btn-go-basket {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border-width: 1px;
    border-radius: 7px;
    font-size: 13px;
}

#orderPopup .page-3 .btn-added-confirm {
    border-color: #abe5c4;
    background: #ecf9f2;
    color: #08783e;
}

#orderPopup .page-3 .btn-go-basket {
    background: var(--pc-flow-brand);
}

@media (max-width: 1100px) {
    #orderPopup .page-3 .discount-tiers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #orderPopup .page-3 .add-quote-success {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-height: 760px) {
    #orderPopup .page-3 .p3-page-wrapper {
        padding: 10px 18px 12px;
    }

    #orderPopup .page-3 .selected-colour-bar {
        min-height: 42px;
    }

    #orderPopup .page-3 .discount-tier-card {
        min-height: 66px;
        padding: 6px;
    }
}

/* Final alignment override for the three boxed sections in the reference layout. */
#orderPopup .page-3 .p3-page-wrapper {
    display: grid !important;
    grid-template-columns: minmax(290px, .74fr) minmax(0, 1.26fr) !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    column-gap: 16px !important;
    row-gap: 10px !important;
    align-items: stretch !important;
    padding: 18px 20px 12px !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

#orderPopup .page-3 .p3-back-colour {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: start !important;
}

#orderPopup .page-3 .p3-product-preview {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 0 !important;
    height: 100% !important;
    align-self: stretch !important;
}

#orderPopup .page-3 .sizes-section-p3 {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    height: 100% !important;
    align-self: stretch !important;
    margin: 0 !important;
}

#orderPopup .page-3 .p3-bottom-bar {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    align-self: end !important;
}

#orderPopup .page-3 .size-price-p3 {
    display: none !important;
}

#orderPopup .page-3 .p3-action-row {
    display: grid;
    grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
    gap: 12px;
    flex: 0 0 42%;
    width: 42%;
    max-width: 42%;
}

#orderPopup .page-3 .p3-action-row button {
    min-height: 52px;
    margin: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 4px 10px rgba(24, 34, 48, .08);
}

#orderPopup .page-3 .p3-btn-plain {
    border: 1px solid #159a58;
    background: #159a58;
    color: #fff;
}

#orderPopup .page-3 .p3-btn-plain:hover {
    background: #107844;
    box-shadow: 0 6px 14px rgba(21, 154, 88, .22);
}

#orderPopup .page-3 .p3-btn-customize {
    border: 1px solid #f97316;
    background: #f97316;
    color: #fff;
}

#orderPopup .page-3 .p3-btn-customize:hover {
    background: #d85d0a;
    box-shadow: 0 6px 14px rgba(249, 115, 22, .22);
}

#orderPopup .page-3 .p3-action-row .btn-add-quote {
    width: auto;
    min-width: 0;
    background: var(--pc-flow-brand);
}

#orderPopup .page-3 .p3-action-row .btn-add-quote:hover {
    background: var(--pc-flow-brand-dark);
    box-shadow: 0 6px 14px rgba(39, 52, 105, .22);
}

/* Thin outline actions with filled hover states. */
#orderPopup .page-3 .p3-action-row button,
#orderPopup .page-3 .p3-action-row .btn-add-quote {
    min-height: 42px;
    border-width: 1.5px;
    border-style: solid;
    box-shadow: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

#orderPopup .page-3 .p3-btn-plain {
    border-color: #159a58;
    background: #fff;
    color: #159a58;
}

#orderPopup .page-3 .p3-btn-plain:hover {
    background: #159a58;
    color: #fff;
    box-shadow: 0 5px 12px rgba(21, 154, 88, .2);
}

#orderPopup .page-3 .p3-btn-customize {
    border-color: #f97316;
    background: #fff;
    color: #f97316;
}

#orderPopup .page-3 .p3-btn-customize:hover {
    background: #f97316;
    color: #fff;
    box-shadow: 0 5px 12px rgba(249, 115, 22, .2);
}

#orderPopup .page-3 .p3-action-row .btn-add-quote {
    border-color: var(--pc-flow-brand);
    background: #fff;
    color: var(--pc-flow-brand);
}

#orderPopup .page-3 .p3-action-row .btn-add-quote:hover {
    background: var(--pc-flow-brand);
    color: #fff;
    box-shadow: 0 5px 12px rgba(39, 52, 105, .2);
}

@media (max-height: 900px) and (min-width: 769px) {
    #orderPopup .order_card {
        height: calc(100dvh - 24px);
    }

    #orderPopup .pc-product-flow-header {
        min-height: 68px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    #orderPopup .pc-product-flow-logo {
        width: 160px;
        height: 46px;
    }

    #orderPopup .pc-flow-page-nav {
        min-height: 46px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    #orderPopup .product-shop-layout {
        padding: 12px 16px 14px;
        gap: 16px;
    }

    #orderPopup .product-gallery {
        padding: 12px;
    }

    #orderPopup .product-main-image {
        padding: 10px;
    }

    #orderPopup .product-shop-info {
        padding: 13px 18px;
    }

    #orderPopup .p1-header {
        min-height: 58px;
        margin-bottom: 6px;
    }

    #orderPopup .p1-name {
        font-size: clamp(19px, 1.35vw, 24px);
    }

    #orderPopup .p1-price-brand-row {
        min-height: 42px;
        padding: 4px 0;
    }

    #orderPopup .p1-action-row {
        margin: 7px 0;
    }

    #orderPopup .pc-price-breaks-heading {
        margin-top: 7px;
    }

    #orderPopup .pc-price-tier {
        min-height: 64px;
        padding: 4px 3px;
    }

    #orderPopup .p1-spec-row {
        padding: 4px 0;
    }

    #orderPopup .pc-product-assurance {
        display: none;
    }

    #orderPopup .page-3 .p3-page-wrapper {
        padding: 10px 16px 12px !important;
        row-gap: 8px !important;
    }

    #orderPopup .page-3 .p3-back-colour {
        min-height: 32px;
        padding: 4px 8px;
    }

    #orderPopup .page-3 .p3-preview-header {
        min-height: 46px;
        padding: 9px 12px 0;
    }

    #orderPopup .page-3 .selected-colour-bar {
        min-height: 42px;
        margin: 0 8px 8px;
        padding: 6px 10px;
    }

    #orderPopup .page-3 .selected-colour-thumb {
        width: 28px;
        height: 28px;
    }

    #orderPopup .page-3 .sizes-section-p3 {
        padding: 12px 14px 10px;
        gap: 8px;
    }

    #orderPopup .page-3 .sizes-meta,
    #orderPopup .page-3 .discount-tiers {
        margin-bottom: 8px;
    }

    #orderPopup .page-3 .discount-tier-card {
        min-height: 62px;
        padding: 5px 4px;
    }

    #orderPopup .page-3 .size-qty-box-p3,
    #orderPopup .page-3 .size-quantity__row {
        min-height: 58px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    #orderPopup .page-3 .p3-bottom-bar {
        min-height: 52px;
        padding: 7px 12px;
    }

    #orderPopup .page-3 .p3-action-row button {
        min-height: 38px;
    }
}

@media (max-width: 1250px) and (min-width: 769px) {
    #orderPopup .order_wrapper {
        width: calc(100vw - 32px);
    }

    #orderPopup .pc-product-flow-header {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 18px;
    }

    #orderPopup .pc-product-flow-help {
        display: none;
    }

    #orderPopup .product-shop-layout {
        grid-template-columns: minmax(300px, .82fr) minmax(430px, 1.18fr);
    }
}

/* Basket icon in the popup flow header, visible on every page. */
#orderPopup .pc-product-flow-help .pc-flow-basket {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border: 1.5px solid #d4dae6;
    border-radius: 10px;
    background: #fff;
    color: #273469;
}

#orderPopup .pc-product-flow-help .pc-flow-basket:hover {
    border-color: #273469;
    background: #f6f8fc;
}

#orderPopup .pc-flow-basket-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #7c3aed;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

/* Volume discount always sits at the bottom of the quantity panel, filling
   the empty space below short size lists (One Size items like beanies and
   aprons) instead of hugging the size grid. */
#orderPopup .page-3 .discount-tiers {
    margin-top: auto;
}

#orderPopup .page-3 .sizes-hint {
    display: none;
}

#orderPopup .page-4 .p4-choose {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

#orderPopup .page-4 .p4-choose > .pc-flow-page-nav {
    flex: 0 0 auto;
}

#orderPopup .page-4 #btnP4Next {
    min-width: 140px;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #f97316;
    color: #fff;
    font-weight: 700;
}

#orderPopup .page-4 #btnP4Next:hover {
    background: #ea6c0a;
    color: #fff;
    box-shadow: 0 6px 16px rgba(249, 115, 22, .22);
}

#orderPopup .page-4 .p4-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(240px, 300px);
    gap: 18px;
    min-height: 0;
    flex: 1 1 auto;
    padding: 8px 20px 2px;
    overflow: hidden;
    align-items: stretch;
}

#orderPopup .page-4 .p2-identity-bar {
    display: none;
}

#orderPopup .page-4 .p4-summary-col,
#orderPopup .page-4 .p4-upload-col,
#orderPopup .page-4 .p4-main-col {
    min-width: 0;
    min-height: 0;
}

#orderPopup .page-4 .p4-main-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#orderPopup .page-4 .p4-positions-scroll-shell {
    margin-bottom: 8px;
}

#orderPopup .page-4 .p4-positions-scroll-shell .op-scroll {
    padding: 8px 8px 18px 10px;
}

#orderPopup .page-4 .p4-notes {
    flex: 0 0 auto;
}

#orderPopup .page-4 .p4-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

#orderPopup .page-4 .p4-preview-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 168px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    background: #ffffff;
}

#orderPopup .page-4 .p4-preview-frame img {
    max-width: 100%;
    max-height: 168px;
    object-fit: contain;
}

#orderPopup .page-4 .p4-order-summary {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

#orderPopup .page-4 .p4-order-summary h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

#orderPopup .page-4 .p4-order-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 4px 0;
    color: #374151;
    font-size: 13px;
}

#orderPopup .page-4 .p4-sum-line {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

#orderPopup .page-4 .p4-sum-total {
    color: #111827;
    font-size: 16px;
}

#orderPopup .page-4 .p4-sum-total strong {
    color: #159a58;
    font-size: 22px;
}

#orderPopup .page-4 .p4-confirm {
    position: relative;
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #f97316;
    color: #fff;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: background .6s ease;
}

#orderPopup .page-4 .p4-confirm:hover {
    background: #ea6c0a;
}

#orderPopup .page-4 .p4-confirm-text {
    transition: opacity .25s ease;
}

#orderPopup .page-4 .p4-confirm-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.4);
    opacity: 0;
    transition: opacity .3s ease .25s, transform .3s ease .25s;
}

#orderPopup .page-4 .p4-confirm.is-confirmed {
    background: #00c853;
}

#orderPopup .page-4 .p4-confirm.is-confirmed:hover {
    background: #00b34a;
}

#orderPopup .page-4 .p4-confirm.is-confirmed .p4-confirm-text {
    opacity: 0;
}

#orderPopup .page-4 .p4-confirm.is-confirmed .p4-confirm-check {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Secondary CTA: match mega-menu Shop CTA (black + white + orange arrow) */
#orderPopup .page-4 .p4-view-basket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 36px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-weight: 800;
    letter-spacing: .04em;
    cursor: pointer;
}

#orderPopup .page-4 .p4-view-basket span {
    color: #ff7a00;
}

#orderPopup .page-4 .p4-view-basket:hover {
    background: #0b1220;
    color: #fff;
}

#orderPopup .page-4 .p4-view-basket:hover span {
    color: #ff7a00;
}

#orderPopup .page-4 .p4-selected-colour {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #e8f8ef;
    color: #1f2937;
    font-size: 11px;
    line-height: 1.15;
}

#orderPopup .page-4 .p4-selected-colour-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

#orderPopup .page-4 .p4-selected-colour span {
    color: #00c853;
    font-weight: 800;
}

#orderPopup .page-4 .p4-bar-icon {
    display: inline-flex;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #00a84a;
    line-height: 0;
}

#orderPopup .page-4 .p4-bar-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

#orderPopup .page-4 #p4SelectedName {
    flex: 0 1 auto;
    min-width: min-content;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
}

#orderPopup .page-4 #p4SelectedSwatch {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 6px;
    background: #f3f4f6 center/cover no-repeat;
}

#orderPopup .page-4 .p4-artwork-approval {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 1 112px;
    width: 112px;
    max-width: 42%;
    min-width: 0;
    padding-left: 8px;
    border-left: 1px solid #b9e8cd;
    color: #159a58;
    font-size: 9px;
    line-height: 1.15;
}

#orderPopup .page-4 .p4-artwork-approval strong {
    display: block;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;
}

#orderPopup .page-4 .positions-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

#orderPopup .page-4 .position-card[hidden] {
    display: none !important;
}

#orderPopup .page-4 .position-card,
#orderPopup .page-4 .position-card:hover,
#orderPopup .page-4 .position-card.selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 2px 6px;
    border: 0 !important;
    border-radius: 10px;
    background: #fff !important;
    box-shadow: none !important;
}

#orderPopup .page-4 .position-checkbox input,
#orderPopup .page-4 .uploaded-logo-container {
    display: none !important;
}

#orderPopup .page-4 .position-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 2;
    width: 100%;
}

#orderPopup .page-4 .position-preview {
    order: 1;
    width: 100%;
}

#orderPopup .page-4 .position-prices {
    order: 3;
    width: 100%;
}

#orderPopup .page-4 .position-checkbox span {
    display: block;
    margin: 4px 0 6px;
    text-align: center;
    font-family: Poppins, Inter, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: #111827;
}

#orderPopup .page-4 .p4-logo-on-card,
#orderPopup .page-4 .p4-logo-method {
    display: none !important;
}

#orderPopup .page-4 .p4-previous-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 8px 0;
}

#orderPopup .page-4 .p4-previous-logo {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    padding: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: grab;
    touch-action: none;
    -webkit-touch-callout: none;
    user-select: none;
}

@media (pointer: coarse) {
    #orderPopup .page-4 .p4-previous-logo {
        cursor: grab;
    }
}

#orderPopup .page-4 .p4-previous-logo.is-selected {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, .2);
}

#orderPopup .page-4 .p4-previous-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
    user-select: none;
}

#orderPopup .page-4 .p4-previous-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
}

#orderPopup .page-4 .p4-notes {
    display: block;
    margin-top: 16px;
}

#orderPopup .page-4 .p4-notes span {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

#orderPopup .page-4 .p4-notes textarea {
    width: 100%;
    min-height: 88px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    resize: vertical;
}

#orderPopup .page-4 .p4-upload-col h3,
#orderPopup .page-4 .p4-upload-col h4 {
    margin: 0 0 6px;
    color: #1d4ed8;
    font-size: 18px;
}

#orderPopup .page-4 .p4-upload-col h4 {
    margin-top: 10px;
    font-size: 15px;
    color: #111827;
}

#orderPopup .page-4 .p4-upload-col > p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
}

#orderPopup .page-4 .p4-upload-box {
    position: relative;
    width: 100%;
    margin: 6px 0 4px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 1px;
    border: 0;
    border-radius: 12px;
    background: #1c2e65;
    color: #fff;
    text-align: left;
    cursor: default;
    flex: 0 0 auto;
}

#orderPopup .page-4 .p4-upload-box::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1.5px dashed rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    pointer-events: none;
}

#orderPopup .page-4 .p4-upload-icon {
    grid-row: 1 / span 2;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

#orderPopup .page-4 .p4-upload-copy {
    display: contents;
}

#orderPopup .page-4 .p4-upload-copy strong {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
    line-height: 1.15;
    color: #fff;
}

#orderPopup .page-4 .p4-upload-copy span {
    grid-column: 2 / -1;
    grid-row: 2;
    font-size: 11px;
    line-height: 1.25;
    color: #fff;
}

#orderPopup .page-4 .p4-upload-box .p4-choose-file {
    position: relative;
    z-index: 1;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    flex: 0 0 auto;
    margin-left: 0;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #1c2e65;
    font-family: inherit;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: 0 5px 0 #0a1636;
    transform: translateY(-1px);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

#orderPopup .page-4 .p4-upload-box .p4-choose-file:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 #0a1636;
}

#orderPopup .page-4 .p4-upload-box .p4-choose-file:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #0a1636;
}

#orderPopup .page-4 .p4-file-types,
#orderPopup .page-4 .p4-file-tip {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

#orderPopup .page-4 .p4-file-tip {
    color: #159a58;
}

#orderPopup .page-4 .p4-file-tip .p4-bar-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
}

#orderPopup .page-4 .p4-upload-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    /* Small clearance so the continue-shopping border stays inside the popup. */
    padding-bottom: 2px;
    scroll-padding-bottom: 8px;
}

#orderPopup .page-4 .p4-saved-logos,
#orderPopup .page-4 .p4-btn-skip {
    align-self: flex-start;
    width: auto;
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: #1d4ed8;
    text-align: left;
    cursor: pointer;
}

#orderPopup .page-4 .p4-upload-col > .p4-btn-skip {
    margin-bottom: 12px;
}

#orderPopup .page-4 .p4-continue-shopping {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
    flex: 0 0 auto;
    min-height: 42px;
    margin-top: auto;
    margin-bottom: 0;
    padding: 0 14px;
    border: 1.5px dashed #f97316;
    border-radius: 8px;
    background: #fff;
    color: #1c2e65;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    transition: none;
}

#orderPopup .page-4 .p4-continue-shopping:hover {
    border-style: solid;
    border-color: #f97316;
    background: #fff7ed;
    color: #1c2e65;
    box-shadow: none;
    transform: none;
}

#orderPopup .page-4 .p4-continue-shopping:active {
    border-style: solid;
    border-color: #f97316;
    background: #ffedd5;
    color: #1c2e65;
    box-shadow: none;
    transform: none;
}

#orderPopup .page-4 .p4-continue-shopping:focus,
#orderPopup .page-4 .p4-continue-shopping:focus-visible {
    box-shadow: none;
    transform: none;
}

#orderPopup .page-4 .p4-artwork-help {
    flex: 0 0 auto;
    margin-top: 8px;
    padding: 8px;
    border-radius: 10px;
    background: #f5f3ff;
    font-size: 12px;
}

#orderPopup .page-4 .p4-artwork-help strong,
#orderPopup .page-4 .p4-artwork-help span {
    display: block;
}

#orderPopup .page-4 .p4-nav-title strong {
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(18px, 1.3vw, 24px);
    font-weight: 700;
    letter-spacing: -.025em;
    color: #1d4ed8;
}

#orderPopup .page-4 .p4-choose {
    padding: 0 !important;
    background: #fff !important;
}

#orderPopup .page-4 .p4-layout {
    display: grid !important;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px);
    align-items: stretch;
    overflow: hidden;
}

#orderPopup .page-4 .positions-grid {
    height: auto !important;
    overflow: visible !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

#orderPopup .page-4 .p4-summary-col .p3-preview-name {
    display: block;
    max-width: 180px;
    font-family: Poppins, Inter, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
    color: #111827;
    white-space: normal;
}

#orderPopup .page-4 #p4SummaryBrand {
    width: auto;
    max-width: 110px;
    max-height: 28px;
    object-fit: contain;
}

#orderPopup .page-4 .position-preview {
    position: relative;
    width: 100%;
    height: 118px;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    will-change: transform;
}

/* Whole card stays still — only the preview image lifts on hover. */
#orderPopup .page-4 .position-card,
#orderPopup .page-4 .position-card:hover,
#orderPopup .page-4 .position-card.selected {
    transform: none !important;
}

#orderPopup .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;
}

#orderPopup .page-4 .position-placeholder {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: #fff;
    /* API position art includes a baked-in name under the garment — crop it;
       the HTML .position-checkbox span remains the visible position label. */
    clip-path: inset(0 0 13% 0);
}

#orderPopup .page-4 .p4-place-guide {
    display: none;
}

#orderPopup .page-4 .position-prices {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    order: 3;
}

#orderPopup .page-4 .price-emb,
#orderPopup .page-4 .price-print {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 28px;
    margin: 0;
    padding: 0 8px;
    border: 0 !important;
    border-radius: 8px;
    color: #fff !important;
    box-shadow: 0 2px 6px rgb(15 23 42 / 18%);
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: 2px;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
}

#orderPopup .page-4 .price-emb {
    background: linear-gradient(180deg, #ffd54f, #ffc107) !important;
    color: #1e2749 !important;
}

#orderPopup .page-4 .price-print,
#orderPopup .page-4 .price-print:only-child,
#orderPopup .page-4 .position-prices:has(.price-emb) .price-print:not(.poa-badge) {
    background: linear-gradient(180deg, #3f83f8, #1769d2) !important;
    background-color: #1769d2 !important;
    background-image: linear-gradient(180deg, #3f83f8, #1769d2) !important;
    box-shadow: 0 2px 6px rgb(15 23 42 / 18%) !important;
}

/* Separate hover for each method — card itself does not move. */
#orderPopup .page-4 .price-emb:hover:not(.poa-badge):not(:disabled),
#orderPopup .page-4 .price-print:hover:not(.poa-badge):not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 14px rgb(15 23 42 / 28%) !important;
    filter: brightness(1.08);
}

#orderPopup .page-4 .price-emb:active:not(.poa-badge):not(:disabled),
#orderPopup .page-4 .price-print:active:not(.poa-badge):not(:disabled) {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 1px 4px rgb(15 23 42 / 22%) !important;
    filter: brightness(0.96);
}

/* Clear selected/click state — stays until the other method on this card is chosen. */
#orderPopup .page-4 .price-emb.active {
    position: relative;
    z-index: 1;
    transform: translateY(0) scale(1.04);
    box-shadow:
        0 0 0 3px #142456,
        0 0 0 6px rgb(255 255 255 / 95%),
        0 8px 18px rgb(15 23 42 / 32%) !important;
    filter: brightness(1.04);
}

#orderPopup .page-4 .price-print.active {
    position: relative;
    z-index: 1;
    transform: translateY(0) scale(1.04);
    box-shadow:
        0 0 0 3px #142456,
        0 0 0 6px rgb(255 255 255 / 95%),
        0 8px 18px rgb(15 23 42 / 32%) !important;
    filter: brightness(1.04);
}

#orderPopup .page-4 .price-emb.active:hover:not(:disabled),
#orderPopup .page-4 .price-print.active:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.05);
    filter: brightness(1.08);
}

#orderPopup .page-4 .position-prices:has(.active) .price-badge:not(.active):not(.poa-badge) {
    opacity: 0.48;
    filter: grayscale(0.2) brightness(0.96);
    box-shadow: none !important;
    transform: none;
}

#orderPopup .page-4 .price-emb.poa-badge,
#orderPopup .page-4 .price-print.poa-badge {
    background: #e5e7eb !important;
    color: #6b7280 !important;
}

#orderPopup .page-4 .price-emb.poa-badge .price-label,
#orderPopup .page-4 .price-print.poa-badge .price-label {
    color: #6b7280 !important;
}

#orderPopup .page-4 .price-emb .price-label,
#orderPopup .page-4 .price-print .price-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: Poppins, Inter, sans-serif;
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff !important;
}

#orderPopup .page-4 .price-emb:not(.poa-badge) .price-label {
    color: #1E2749 !important;
}

#orderPopup .page-4 .price-badge:not(.add-logo-btn) .price-label::before {
    font-family: "Font Awesome 6 Free";
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

#orderPopup .page-4 .price-emb:not(.add-logo-btn) .price-label::before {
    content: "\e2ca";
}

#orderPopup .page-4 .price-print:not(.add-logo-btn) .price-label::before {
    content: "\f02f";
}

#orderPopup .page-4 .price-emb .price-value,
#orderPopup .page-4 .price-print .price-value {
    display: none;
}

/* Quantity step: same chrome as the colour page. */
#orderPopup .page-3 .p3-choose-qty.p3-page-wrapper {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
    gap: 0;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 0;
}

#orderPopup .page-3 .p3-choose-qty > .pc-flow-page-nav {
    flex: 0 0 auto;
}

#orderPopup .page-3 .p3-continue-customise {
    flex: 0 0 auto;
    width: auto;
    min-width: 220px;
    min-height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: #e85d04;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

#orderPopup .page-3 .p3-continue-customise:hover {
    background: #d34f00;
}

#orderPopup .page-3 .p3-back-colour {
    grid-column: auto;
    grid-row: auto;
    align-self: center;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid #d8deea;
    border-radius: 10px;
    background: #fff;
    color: #1c2e65;
    font-size: 13px;
    font-weight: 750;
}

#orderPopup .page-3 .p3-qty-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 28px;
    min-height: 0;
    flex: 1 1 auto;
    padding: 8px 24px 14px;
    overflow: hidden;
}

#orderPopup .page-3 .p3-choose-qty .p3-product-preview,
#orderPopup .page-3 .p3-preview-col {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
}

#orderPopup .page-3 .p3-choose-qty .p3-preview-header {
    min-height: 0;
    padding: 0;
    align-items: flex-start;
}

#orderPopup .page-3 .p3-choose-qty .p3-preview-code {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

#orderPopup .page-3 .p3-choose-qty .p3-preview-name {
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    white-space: normal;
}

#orderPopup .page-3 .p3-choose-qty .p3-preview-colour {
    color: #6b7280;
    font-size: 12px;
}

#orderPopup .page-3 .p3-choose-qty .p3-preview-brand-logo {
    width: auto;
    max-height: 36px;
}

#orderPopup .page-3 .p3-choose-qty .p3-product-image-frame {
    min-height: 260px;
    flex: 1 1 auto;
    padding: 12px;
    border: 2px solid #9ca3af;
    border-radius: 16px;
    background: #fff;
}

#orderPopup .page-3 .p3-choose-qty #p3ProductImage {
    max-height: 340px;
    object-fit: contain;
}

#orderPopup .page-3 .p3-choose-qty .selected-colour-bar {
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#orderPopup .page-3 .p3-choose-qty .selected-colour-bar-left {
    gap: 8px;
    color: #111827;
    font-size: 13px;
}

#orderPopup .page-3 .p3-choose-qty .selected-colour-check {
    color: #00c853;
    font-weight: 800;
}

#orderPopup .page-3 .p3-choose-qty .sizes-section-p3,
#orderPopup .page-3 .p3-qty-col {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    margin: 0;
    padding: 8px 0 10px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#orderPopup .page-3 .p3-from-price {
    flex: 0 0 auto;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

#orderPopup .page-3 .p3-from-price strong {
    font-weight: 800;
}

/* Size list scrolls; volume pricing stays anchored at the column foot. */
#orderPopup .page-3 .p3-choose-qty .p3-size-scroll-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#orderPopup .page-3 .p3-choose-qty .p3-size-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 28px;
    scrollbar-width: thin;
    scrollbar-color: #b7c0ce transparent;
}

#orderPopup .page-3 .p3-choose-qty .p3-size-scroll::-webkit-scrollbar {
    width: 7px;
}

#orderPopup .page-3 .p3-choose-qty .p3-size-scroll::-webkit-scrollbar-track {
    background: transparent;
}

#orderPopup .page-3 .p3-choose-qty .p3-size-scroll::-webkit-scrollbar-thumb {
    border: 2px solid #fff;
    border-radius: 999px;
    background: #b7c0ce;
}

#orderPopup .page-3 .p3-choose-qty .p3-size-scroll-arrows {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateY(-50%);
    pointer-events: none;
}

#orderPopup .page-3 .p3-choose-qty .p3-size-scroll-btn {
    pointer-events: auto;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #d8deea;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    color: #4b5563;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

#orderPopup .page-3 .p3-choose-qty .p3-size-scroll-btn:hover {
    border-color: #9ca3af;
    color: #111827;
    background: #fff;
}

#orderPopup .page-3 .p3-choose-qty .p3-size-scroll-btn[hidden] {
    display: none !important;
}

#orderPopup .page-3 .p3-choose-qty .p3-volume-anchor {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
    background: #fff;
}

#orderPopup .page-3 .p3-choose-qty .sizes-hint {
    margin: 0;
    color: #9ca3af;
    font-size: 11px;
}

#orderPopup .page-3 .p3-choose-qty #sizeQtyGridP3,
#orderPopup .page-3 .p3-choose-qty .size-quantity__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

#orderPopup .page-3 .p3-choose-qty .size-qty-box-p3,
#orderPopup .page-3 .p3-choose-qty .size-quantity__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    gap: 6px;
}

#orderPopup .page-3 .p3-choose-qty .size-qty-box-p3 .qty-controls,
#orderPopup .page-3 .p3-choose-qty .size-quantity__counter {
    display: grid;
    grid-template-columns: 30px 40px 30px;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 9px;
    background: #f2f5fa;
    flex: 0 0 auto;
}

#orderPopup .page-3 .p3-choose-qty .size-qty-box-p3 .qty-btn,
#orderPopup .page-3 .p3-choose-qty .size-quantity__button {
    width: 30px;
    height: 30px;
    font-size: 18px;
}

#orderPopup .page-3 .p3-choose-qty #sizeQtyGridP3 .qty-input,
#orderPopup .page-3 .p3-choose-qty .size-quantity__input {
    width: 40px;
    min-width: 40px;
    height: 30px;
    font-size: 14px;
}

#orderPopup .page-3 .p3-choose-qty .size-qty-box-p3.has-qty,
#orderPopup .page-3 .p3-choose-qty .size-quantity__row[data-selected="true"],
#orderPopup .page-3 .p3-choose-qty .size-qty-box-p3.has-qty:hover {
    border: 2px solid #6b7280;
    background: #f3f4f6;
    box-shadow: none;
}

#orderPopup .page-3 .p3-choose-qty .size-name-p3,
#orderPopup .page-3 .p3-choose-qty .size-quantity__label {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

#orderPopup .page-3 .p3-volume-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
}

#orderPopup .page-3 .p3-volume-head h3 {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

#orderPopup .page-3 .p3-volume-head span {
    color: #6b7280;
    font-size: 11px;
}

#orderPopup .page-3 .p3-choose-qty .discount-tiers {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    margin-top: 0;
    padding-bottom: 6px;
    flex: 0 0 auto;
}

#orderPopup .page-3 .p3-choose-qty .discount-tier-card {
    position: relative;
    min-height: 0;
    padding: 7px 5px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

#orderPopup .page-3 .p3-choose-qty .discount-tier-card::before,
#orderPopup .page-3 .p3-choose-qty .discount-tier-card::after {
    content: none;
    display: none;
}

#orderPopup .page-3 .p3-choose-qty .discount-tier-card .tier-qty,
#orderPopup .page-3 .p3-choose-qty .discount-tier-card .tier-price,
#orderPopup .page-3 .p3-choose-qty .discount-tier-card .tier-label,
#orderPopup .page-3 .p3-choose-qty .discount-tier-card .tier-save {
    color: #122961;
}

#orderPopup .page-3 .p3-choose-qty .discount-tier-card .tier-qty {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
}

#orderPopup .page-3 .p3-choose-qty .discount-tier-card .tier-price {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
}

#orderPopup .page-3 .p3-choose-qty .discount-tier-card .tier-label {
    margin: 0;
    color: #9ca3af;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.1;
}

#orderPopup .page-3 .p3-choose-qty .discount-tier-card .tier-save {
    display: inline-block;
    margin-top: 3px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #fbbf24;
    color: #122961;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

#orderPopup .page-3 .p3-choose-qty .discount-tier-card.tier-active {
    border: 2px solid #9ca3af;
    background: #f3f4f6;
}

#orderPopup .page-3 .p3-choose-qty .discount-tier-card.tier-active::before,
#orderPopup .page-3 .p3-choose-qty .discount-tier-card.tier-active::after {
    content: none;
    display: none;
}

#orderPopup .page-3 .p3-choose-qty .discount-tier-card.tier-active .tier-qty,
#orderPopup .page-3 .p3-choose-qty .discount-tier-card.tier-active .tier-price,
#orderPopup .page-3 .p3-choose-qty .discount-tier-card.tier-active .tier-label {
    color: #122961;
}

#orderPopup .page-3 .p3-choose-qty .discount-tier-card.tier-active .tier-save {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 3px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #fbbf24;
    color: #122961;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.15;
}

#orderPopup .page-3 .p3-choose-qty .p3-bottom-bar,
#orderPopup .page-3 .p3-qty-footer {
    grid-column: auto;
    flex: 0 0 auto;
    min-height: 64px;
    padding: 10px 24px 14px;
    border: 0;
    border-top: 1px solid #e8ebf0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

#orderPopup .page-3 .p3-choose-qty .p3-total-summary {
    color: #6b7280;
    font-size: 13px;
}

#orderPopup .page-3 .p3-choose-qty .p3-total-summary strong {
    color: #111827;
    font-size: 13px;
}

#orderPopup .page-3 .p3-choose-qty .p3-action-row {
    flex: 0 0 auto;
    max-width: none;
    width: auto;
    gap: 10px;
}

#orderPopup .page-3 .p3-choose-qty .p3-action-row button {
    flex: 0 0 auto;
    min-width: 150px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

#orderPopup .page-3 .p3-choose-qty .p3-btn-plain {
    border: 1px solid #d8deea;
    background: #fff;
    color: #111827;
}

#orderPopup .page-3 .p3-choose-qty .p3-btn-plain:hover {
    background: #f8fafc;
}

#orderPopup .page-3 .p3-choose-qty .p3-btn-customize,
#orderPopup .page-3 .p3-choose-qty .p3-action-row .btn-add-quote {
    border: 0;
    background: #e85d04;
    color: #fff;
}

#orderPopup .page-3 .p3-choose-qty .p3-btn-customize:hover,
#orderPopup .page-3 .p3-choose-qty .p3-action-row .btn-add-quote:hover {
    background: #d34f00;
}

#orderPopup .page-3 .p3-choose-qty .p3-product-preview {
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
}

#orderPopup .page-3 .p3-choose-qty .sizes-section-p3 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: auto !important;
    max-height: 100%;
    min-height: 0 !important;
    overflow: hidden !important;
    padding-bottom: 10px !important;
}

/* Tablet: keep volume pricing visible; sizes scroll inside the column. */
@media (max-width: 1200px) and (min-width: 769px) {
    #orderPopup .page-3 .p3-choose-qty .p3-qty-layout {
        grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
        gap: 18px;
        padding: 6px 16px 10px;
    }

    #orderPopup .page-3 .p3-choose-qty .p3-product-image-frame {
        height: 180px;
    }

    #orderPopup .page-3 .p3-choose-qty #p3ProductImage {
        max-height: 156px;
    }

    #orderPopup .page-3 .p3-choose-qty .size-qty-box-p3,
    #orderPopup .page-3 .p3-choose-qty .size-quantity__row {
        min-height: 46px;
        padding: 6px 8px;
    }

    #orderPopup .page-3 .p3-choose-qty .p3-size-scroll {
        padding-right: 30px;
    }

    #orderPopup .page-3 .p3-choose-qty #sizeQtyGridP3,
    #orderPopup .page-3 .p3-choose-qty #sizeQtyGridP3.is-multi {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    #orderPopup .page-3 .p3-choose-qty .discount-tier-card {
        padding: 6px 3px 5px;
    }

    #orderPopup .page-3 .p3-choose-qty .discount-tier-card .tier-price {
        font-size: 13px;
    }
}

#orderPopup .page-3 .p3-choose-qty .p3-preview-header {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    background: #fff;
}

#orderPopup .page-3 .p3-choose-qty .p3-preview-copy {
    min-width: 0;
    flex: 1 1 auto;
}

#orderPopup .page-3 .p3-choose-qty .p3-preview-name {
    font-family: Poppins, Inter, sans-serif;
    font-size: 16px;
    line-height: 1.2;
}

#orderPopup .page-3 .p3-choose-qty .p3-preview-brand-logo {
    display: block;
    width: auto;
    max-width: 108px;
    max-height: 26px;
    object-fit: contain;
    flex: 0 0 auto;
}

#orderPopup .page-3 .p3-choose-qty .p3-product-image-frame {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    height: 220px;
    min-height: 0;
    overflow: hidden;
    border: 2px solid #9ca3af;
    background: #fff;
}

#orderPopup .page-3 .p3-choose-qty #p3ProductImage {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 196px;
    object-fit: contain;
}

#orderPopup .page-3 .p3-choose-qty #sizeQtyGridP3.is-multi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

#orderPopup .page-4 .position-card.has-logo .position-prices {
    display: none !important;
}

#orderPopup .page-4 .p4-logo-under {
    order: 4;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 92px;
    margin-top: 2px;
    padding: 8px 18px 4px;
    border: 0;
    background: transparent;
}

#orderPopup .page-4 .p4-logo-under[hidden] {
    display: none !important;
}

#orderPopup .page-4 .p4-logo-under img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 78px;
    padding: 0;
    border: 0;
    object-fit: contain;
    background: transparent;
    transform: scale(1);
    transform-origin: center center;
}

/* Soft-shrink: drop settles from the +20% grab size into the under-shirt slot. */
#orderPopup .page-4 .p4-logo-under img.is-soft-shrinking {
    transform: scale(1.2);
    transition: none;
}

#orderPopup .page-4 .p4-logo-under img.is-soft-shrinking.is-settled {
    transform: scale(1);
    transition: transform 0.45s ease;
}

#orderPopup .page-4 .p4-logo-remove {
    position: absolute;
    top: 0;
    right: 4px;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    line-height: 20px;
    cursor: pointer;
}

#orderPopup .page-4 .position-card.is-drop-ready {
    outline: 2px dashed #1d4ed8;
    outline-offset: 4px;
    background: #f8faff !important;
}

#orderPopup .page-4 .p4-previous-logo.is-dragging {
    opacity: .55;
}

body.bu-logo-touch-dragging {
    overflow: hidden !important;
    touch-action: none !important;
}

body.bu-logo-touch-dragging #p4PositionOptions .position-card.is-drop-ready {
    outline: 2px solid #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22);
}

#p4MethodModal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .45);
}

#p4MethodModal .p4-method-card {
    width: min(420px, 90vw);
    padding: 28px 26px 22px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .22);
}

#p4MethodModal .p4-method-card strong {
    display: block;
    font-family: Poppins, Inter, sans-serif;
    font-size: 20px;
    letter-spacing: -.025em;
    color: #111827;
}

#p4MethodModal .p4-method-card p {
    margin: 8px 0 18px;
    color: #4b5563;
    font-size: 14px;
}

#p4MethodModal .p4-method-choices {
    display: flex;
    gap: 10px;
}

#p4MethodModal .p4-method-choice {
    flex: 1;
    min-height: 72px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
}

#p4MethodModal .p4-method-choice span,
#p4MethodModal .p4-method-choice em {
    display: block;
}

#p4MethodModal .p4-method-choice span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: Poppins, Inter, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

#p4MethodModal .p4-method-choice span::before {
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

#p4MethodModal .p4-method-embroidery span::before {
    content: "\e2ca";
}

#p4MethodModal .p4-method-print span::before {
    content: "\f02f";
}

#p4MethodModal .p4-method-choice em {
    margin-top: 4px;
    font-style: normal;
    font-size: 12px;
    opacity: .92;
}

#p4MethodModal .p4-method-embroidery {
    background: #FFC107;
    color: #1E2749;
}

#p4MethodModal .p4-method-print {
    background: #1769D2;
}

#p4MethodModal .p4-method-cancel {
    margin-top: 14px;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

/* EMBROIDERY VOA — request path (customer note → staff confirm) */
#orderPopup .page-4 .price-emb-voa {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 28px;
    margin: 0;
    padding: 0 8px;
    border: 0 !important;
    border-radius: 8px;
    background: linear-gradient(180deg, #fbbf24, #d97706) !important;
    color: #1e2749 !important;
    box-shadow: 0 2px 6px rgb(15 23 42 / 18%);
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: 2px;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
}

#orderPopup .page-4 .price-emb-voa .price-label,
#orderPopup .page-4 .price-emb-voa .price-value {
    font-family: Poppins, Inter, sans-serif;
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: .04em;
    color: #1e2749 !important;
}

#orderPopup .page-4 .price-emb-voa:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 14px rgb(15 23 42 / 28%) !important;
    filter: brightness(1.08);
}

#orderPopup .page-4 .price-emb-voa:active:not(:disabled) {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 1px 4px rgb(15 23 42 / 22%) !important;
    filter: brightness(0.96);
}

#orderPopup .page-4 .price-emb-voa.active {
    position: relative;
    z-index: 1;
    transform: translateY(0) scale(1.04);
    box-shadow:
        0 0 0 3px #142456,
        0 0 0 6px rgb(255 255 255 / 95%),
        0 8px 18px rgb(15 23 42 / 32%) !important;
    filter: brightness(1.04);
}

#p4VoaModal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .45);
}

#p4VoaModal .p4-voa-card {
    width: min(440px, 92vw);
    padding: 28px 26px 22px;
    border-radius: 18px;
    background: #fff;
    text-align: left;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .22);
}

#p4VoaModal .p4-voa-card strong {
    display: block;
    font-family: Poppins, Inter, sans-serif;
    font-size: 20px;
    letter-spacing: -.025em;
    color: #111827;
    text-align: center;
}

#p4VoaModal .p4-voa-card > p {
    margin: 10px 0 16px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

#p4VoaModal .p4-voa-label {
    display: block;
    margin-bottom: 6px;
    font-family: Poppins, Inter, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

#p4VoaModal .p4-voa-notes {
    width: 100%;
    box-sizing: border-box;
    min-height: 96px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-family: Poppins, Inter, sans-serif;
    font-size: 14px;
    color: #111827;
    resize: vertical;
}

#p4VoaModal .p4-voa-notes:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

#p4VoaModal .p4-voa-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

#p4VoaModal .p4-voa-confirm {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f97316;
    color: #fff;
    font-family: Poppins, Inter, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

#p4VoaModal .p4-voa-confirm:hover {
    background: #ea6c0a;
}

#p4VoaModal .p4-voa-cancel {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
}

/* Tablet rotate hint styles live in:
   brandedukv15-child/assets/css/components/tablet-rotate-hint.css
*/

