/*
 * Galaxy product page buy column (layout handle galaxy_pdp).
 * Colours from galaxy.mu: red #cc2229, ice blue #b4dde6, mint #6bd8c3; Protect Plus pink #fbb3c0 / stone #e2e1d8.
 * Everything is scoped to body.gpdp so the old layout is untouched when the feature is off.
 */
body.gpdp {
    --gpdp-red: #cc2229;
    --gpdp-red-dark: #b51d23;
    --gpdp-ink: #1d1d1f;
    --gpdp-muted: #6b6b70;
    --gpdp-line: #e3e3e6;
    --gpdp-ice: #b4dde6;
    --gpdp-ice-line: #9ecad4;
    --gpdp-mint: #6bd8c3;
    --gpdp-mint-ink: #0b7d72;
    --gpdp-amber: #b25e00;
    --gpdp-pink: #fbb3c0;
    --gpdp-pink-soft: #fde9ed;
    --gpdp-pp-red: #ee2a3c;
    --gpdp-stone: #e2e1d8;
}

body.gpdp .product-right {
    font-family: 'Urbanist', sans-serif;
    color: var(--gpdp-ink);
}

/* ---- logo row + title ------------------------------------------------------------------------ */
body.gpdp .gpdp-brandrow {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 30px;
    margin-bottom: 6px;
    padding-top: 12px;
}
body.gpdp .gpdp-brandlogo {
    display: block;
    width: 120px;
    height: 30px;
    overflow: hidden;
    flex: none;
}
/* brand images are 500x500 squares with the wordmark centred: crop to the wordmark band */
body.gpdp .gpdp-brandlogo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    display: block;
}
/* trimmed copy (blank margin cut off): show the whole logo, left-aligned */
body.gpdp .gpdp-brandlogo.trimmed img {
    object-fit: contain;
    object-position: left center;
}
body.gpdp .gpdp-brandname {
    display: none;
}
body.gpdp .gpdp-brandlogo.no-img {
    width: auto;
    height: auto;
    overflow: visible;
}
body.gpdp .gpdp-brandlogo.no-img .gpdp-brandname {
    display: inline;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gpdp-ink);
}
body.gpdp .gpdp-brandrow .product-addto-links {
    display: flex;
    gap: 2px;
    margin: 0 0 0 auto;
    align-items: center;
}
body.gpdp .gpdp-brandrow .product-addto-links .action {
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 4px;
    background: transparent no-repeat center / 18px 18px;
    font-size: 0;
    line-height: 0;
    color: transparent;
    box-shadow: none;
    display: inline-block;
    cursor: pointer;
}
body.gpdp .gpdp-brandrow .product-addto-links .action::before,
body.gpdp .gpdp-brandrow .product-addto-links .action::after {
    display: none !important;
}
body.gpdp .gpdp-brandrow .product-addto-links .action:hover {
    background-color: #f3f3f4;
}
body.gpdp .gpdp-brandrow .product-addto-links .action.towishlist {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a3a3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20s-7-4.4-7-9a4 4 0 0 1 7-2 4 4 0 0 1 7 2c0 4.6-7 9-7 9z'/></svg>");
}
body.gpdp .gpdp-brandrow .product-addto-links .action.tocompare {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a3a3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M7 7h11M14 4l4 3-4 3M17 17H6M10 14l-4 3 4 3'/></svg>");
}
body.gpdp .product-right .page-title-wrapper {
    margin: 0 0 8px;
}
body.gpdp .product-right .page-title-wrapper .page-title {
    font-family: inherit;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    margin: 0;
    color: var(--gpdp-ink);
}
body.gpdp .product-social-links {
    display: none;
}

/* ---- stock line ------------------------------------------------------------------------------- */
body.gpdp .product-info-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
    border: 0;
    margin: 0;
    padding: 0;
    width: 100%;
}
body.gpdp .product-info-price > .product-info-stock-sku {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    margin: 0 0 18px;
    padding: 0;
    font-size: 13px;
    color: var(--gpdp-muted);
    text-align: left;
}
body.gpdp .product-info-stock-sku .product.attribute.sku {
    display: inline-flex;
    gap: 5px;
    margin: 0;
    font-size: 13px;
}
body.gpdp .product-info-stock-sku .product.attribute.sku .type {
    font-weight: 700;
    color: #555;
    margin: 0;
}
body.gpdp .product-info-stock-sku .product.attribute.sku .type::after {
    content: '';
}
body.gpdp .gpdp-stock {
    display: inline-flex;
    align-items: center;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gpdp-mint-ink);
}
body.gpdp .gpdp-avail {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
body.gpdp .gpdp-avail::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gpdp-mint);
    box-shadow: 0 0 0 3px rgba(107, 216, 195, .35);
}
body.gpdp .gpdp-eta::before {
    content: '·';
    color: var(--gpdp-muted);
    font-weight: 600;
    margin: 0 8px;
}
body.gpdp .gpdp-stock.is-low .gpdp-avail {
    color: var(--gpdp-amber);
}
body.gpdp .gpdp-stock.is-low .gpdp-avail::before {
    background: #e07b00;
    box-shadow: 0 0 0 3px rgba(224, 123, 0, .18);
}
body.gpdp .gpdp-stock.is-out {
    color: #c0392b;
}
body.gpdp .gpdp-stock.is-out .gpdp-avail::before {
    background: #dc2626;
    box-shadow: none;
}

/* ---- price, saving, monthly price --------------------------------------------------------------- */
body.gpdp .product-info-price .price-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 6px 0 10px;
    padding: 0;
}
body.gpdp .product-info-price .price-box .price-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
body.gpdp .product-info-price .price-box .special-price,
body.gpdp .product-info-price .price-box .old-price {
    margin: 0;
    display: inline;
}
body.gpdp .product-info-price .price-box > .price-container .price,
body.gpdp .product-info-price .price-box .special-price .price,
body.gpdp .product-info-price .price-box .normal-price .price {
    font-family: inherit;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--gpdp-ink);
}
body.gpdp .product-info-price .price-box .old-price .price {
    font-size: 16px;
    font-weight: 600;
    color: var(--gpdp-muted);
    text-decoration: line-through;
}
body.gpdp .gpdp-save {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    line-height: 1.3;
    color: #fff;
    background: var(--gpdp-red);
    padding: 3px 9px;
    border-radius: 999px;
    margin: 0;
}
body.gpdp .gpdp-finance {
    font-size: 14.5px;
    color: #444;
    margin: 0;
    line-height: 1.5;
}
body.gpdp .gpdp-finance strong {
    color: var(--gpdp-ink);
    font-weight: 700;
}
body.gpdp .gpdp-finance .gpdp-term {
    -webkit-appearance: none;
    appearance: none;
    width: auto;
    height: auto;
    font: inherit;
    font-weight: 700;
    color: var(--gpdp-ink);
    background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'><path d='M1 1l3 3 3-3' fill='none' stroke='%236b6b70' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 1px center;
    border: 0;
    border-bottom: 1px dashed #c8c8cc;
    border-radius: 0;
    padding: 0 13px 0 1px;
    margin: 0 1px;
    line-height: 1.2;
    box-shadow: none;
    cursor: pointer;
    vertical-align: baseline;
}
body.gpdp .gpdp-finance .gpdp-term:hover,
body.gpdp .gpdp-finance .gpdp-term:focus-visible {
    border-bottom-color: var(--gpdp-ink);
    outline: none;
}

/* ---- buy form: Qty + Buy Now, then Protect Plus --------------------------------------------- */
body.gpdp .product-add-form form {
    display: flex;
    flex-direction: column;
}
/* Protect Plus sits under the button, but stays inside the form so it is still submitted */
body.gpdp .product-add-form .product-options-wrapper:has(.gpdp-pp-field) {
    order: 2;
}
body.gpdp .product-add-form .product-options-wrapper {
    margin: 0;
    padding: 0;
    border: 0;
}
body.gpdp .product-add-form .product-options-wrapper .fieldset {
    margin: 0;
}
body.gpdp .product-add-form .box-tocart {
    margin: 24px 0 0;
    padding: 0;
    width: 100%;
}
body.gpdp .product-add-form .box-tocart .fieldset {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0;
    width: 100%;
}
body.gpdp .product-add-form .box-tocart .field.qty {
    flex: none;
    margin: 0;
    padding: 0;
}
body.gpdp .product-add-form .box-tocart .field.qty > .label {
    display: none;
}
body.gpdp .product-add-form .box-tocart .field.qty .control {
    margin: 0;
}
body.gpdp .product-add-form .box-tocart .cart-qty {
    display: flex;
    align-items: center;
    height: 52px;
    border: 1px solid var(--gpdp-line);
    border-radius: 4px;
    background: #fff;
    margin: 0;
}
body.gpdp .product-add-form .box-tocart .cart-qty .qty-ctl {
    margin: 0;
}
body.gpdp .product-add-form .box-tocart .cart-qty .qty-ctl button {
    width: 38px;
    height: 50px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0;
    color: #555;
    box-shadow: none;
    cursor: pointer;
}
body.gpdp .product-add-form .box-tocart .cart-qty .qty-ctl button::before {
    content: '\2212';
    font-family: inherit;
    font-size: 20px;
    line-height: 50px;
    display: block;
}
body.gpdp .product-add-form .box-tocart .cart-qty .qty-ctl button.increase::before {
    content: '+';
}
body.gpdp .product-add-form .box-tocart .cart-qty .qty-ctl button::after {
    display: none;
}
body.gpdp .product-add-form .box-tocart .cart-qty input.qty {
    width: 32px;
    height: 50px;
    padding: 0;
    border: 0;
    text-align: center;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    box-shadow: none;
    background: transparent;
    -moz-appearance: textfield;
}
body.gpdp .product-add-form .box-tocart .cart-qty input.qty::-webkit-outer-spin-button,
body.gpdp .product-add-form .box-tocart .cart-qty input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
body.gpdp .product-add-form .box-tocart .actions {
    flex: 1;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}
body.gpdp .product-add-form .box-tocart .action.primary.tocart,
body.gpdp .product-add-form .box-tocart .action.primary.buy-now {
    flex: 1;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 4px;
    background: var(--gpdp-red);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: none;
    line-height: 52px;
    box-shadow: none;
}
body.gpdp .product-add-form .box-tocart .action.primary.tocart:hover,
body.gpdp .product-add-form .box-tocart .action.primary.buy-now:hover {
    background: var(--gpdp-red-dark);
}
body.gpdp .product-add-form .box-tocart .action.primary::before,
body.gpdp .product-add-form .box-tocart .action.primary::after {
    display: none;
}
/* Buy Now only (Galaxy › Product Page › Show Buy Now only): hide Add to Cart when Buy Now is there */
body.gpdp-buynow-only .product-add-form .box-tocart .actions:has(.buy-now) .action.tocart {
    display: none !important;
}
/* Codazon's floating bar (.att-scr-qty.active) hides everything but Add to Cart.
   On a phone that bar is the bottom Buy Now row, so keep Buy Now visible.
   On desktop the bar is cancelled below and this row stays in the buy column. */
body.gpdp-buynow-only .product-add-form .box-tocart.att-scr-qty.active .actions > .action.primary.buy-now {
    display: block !important;
}
@media (min-width: 768px) {
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active {
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        margin: 24px 0 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
        color: inherit !important;
        box-shadow: none !important;
        border: 0 !important;
        animation: none !important;
        z-index: auto !important;
    }
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active .fieldset,
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active .fieldset.container {
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active .scr-pinfo,
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active .scr-pdeal {
        display: none !important;
    }
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active .field.qty {
        width: auto;
        max-width: none;
        margin: 0;
    }
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active .field.qty .qty {
        height: 50px;
    }
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active .actions {
        flex: 1;
        width: auto;
    }
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active .actions > .action.primary.buy-now {
        width: 100% !important;
        max-width: none;
        min-width: 0;
        height: 52px !important;
        line-height: 52px !important;
        font-size: 17px;
    }
}

/* ---- Protect Plus ------------------------------------------------------------------------------ */
body.gpdp .gpdp-pp-field {
    margin: 14px 0 0;
    padding: 0;
}
body.gpdp .gpdp-pp-native {
    display: none;
}
body.gpdp .gpdp-pp {
    position: relative;
    display: block;
    border: 1px solid var(--gpdp-line);
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--gpdp-ink);
}
body.gpdp .gpdp-pp-title {
    display: block;
    font-weight: 700;
    font-size: 14.5px;
    color: #222;
}
body.gpdp .gpdp-pp-title strong {
    font-weight: 800;
    letter-spacing: -.02em;
}
body.gpdp .gpdp-bymua {
    font-weight: 600;
    font-size: 12px;
    color: #333;
    margin-left: 2px;
    white-space: nowrap;
}
body.gpdp .gpdp-bymua svg {
    display: inline-block;
    vertical-align: -1px;
    margin-right: 1px;
}
body.gpdp .gpdp-pp-text {
    display: block;
    font-size: 13px;
    color: var(--gpdp-muted);
    margin-top: 2px;
}
body.gpdp .gpdp-pp-text a,
body.gpdp .gpdp-pp-more {
    color: var(--gpdp-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* one plan: checkbox card with the pink curve */
body.gpdp .gpdp-pp--single {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 12px 18px;
    overflow: hidden;
    cursor: pointer;
}
body.gpdp .gpdp-pp--single::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-62%);
    width: 64px;
    height: 64px;
    background: var(--gpdp-pink);
    border-radius: 50%;
    pointer-events: none;
}
body.gpdp .gpdp-pp--single::after {
    content: '';
    position: absolute;
    left: -22px;
    bottom: -22px;
    width: 36px;
    height: 36px;
    background: var(--gpdp-stone);
    border-radius: 50%;
    pointer-events: none;
}
body.gpdp .gpdp-pp--single > * {
    position: relative;
    z-index: 1;
}
body.gpdp .gpdp-pp--single.on {
    border-color: var(--gpdp-pink);
    background: var(--gpdp-pink-soft);
}
body.gpdp .gpdp-pp-check {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: none;
    accent-color: var(--gpdp-pp-red);
    position: relative;
    opacity: 1;
}
body.gpdp .gpdp-pp-badge {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: var(--gpdp-pink);
    display: grid;
    place-content: center;
    text-align: center;
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
    color: #333;
}
body.gpdp .gpdp-pp-badge small {
    display: block;
    font-size: 7.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* several plans: header + dropdown */
body.gpdp .gpdp-pp--plans {
    padding: 12px 14px 12px 22px;
}
body.gpdp .gpdp-pp--plans::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 100%;
    background: var(--gpdp-pink);
    border-radius: 3px 0 0 3px;
}
body.gpdp .gpdp-pp-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
body.gpdp .gpdp-pp-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: var(--gpdp-pink);
    display: grid;
    place-items: center;
}
body.gpdp .gpdp-pp-more {
    margin-left: auto;
    font-size: 13px;
    white-space: nowrap;
}
body.gpdp .gpdp-pp-select {
    position: relative;
    margin-top: 12px;
}
body.gpdp .gpdp-pp-face {
    position: relative;
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 36px 8px 12px;
    border: 1.5px solid var(--gpdp-line);
    border-radius: 4px;
    background: #fff;
    font: inherit;
    color: var(--gpdp-ink);
    text-align: left;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
}
body.gpdp .gpdp-pp-face:hover {
    border-color: #c9c9cd;
    background: #fff;
}
body.gpdp .gpdp-pp-chev {
    position: absolute;
    right: 14px;
    top: 50%;
    margin-top: -6px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
}
body.gpdp .gpdp-pp-select.open .gpdp-pp-chev {
    transform: rotate(225deg);
    margin-top: -2px;
}
body.gpdp .gpdp-pp-select.picked .gpdp-pp-face {
    border-color: var(--gpdp-pink);
    background: var(--gpdp-pink-soft);
}
body.gpdp .gpdp-pp-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
}
body.gpdp .gpdp-pp-name {
    min-width: 0;
}
body.gpdp .gpdp-pp-add {
    display: block;
    margin-top: 1px;
    font-weight: 600;
}
body.gpdp .gpdp-pp-amt {
    flex: none;
    white-space: nowrap;
}
body.gpdp .gpdp-pp-extra {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #9a1c22;
}
body.gpdp .gpdp-pp-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    background: #fff;
    border: 1.5px solid var(--gpdp-line);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    overflow: hidden;
}
body.gpdp .gpdp-pp-select.open .gpdp-pp-menu {
    display: block;
}
body.gpdp .gpdp-pp-menu [role=option] {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--gpdp-line);
    border-radius: 0;
    background: #fff;
    font: inherit;
    color: var(--gpdp-ink);
    text-align: left;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
}
body.gpdp .gpdp-pp-menu [role=option]:last-child {
    border-bottom: 0;
}
body.gpdp .gpdp-pp-menu [role=option]:hover,
body.gpdp .gpdp-pp-menu [role=option].on {
    background: var(--gpdp-pink-soft);
}

/* ---- out of stock ----------------------------------------------------------------------------- */
body.gpdp .gpdp-oos {
    margin-top: 16px;
}
body.gpdp .gpdp-oos-head {
    font-weight: 700;
    font-size: 14px;
    color: #c0392b;
    margin-bottom: 8px;
}
body.gpdp .gpdp-oos-btn {
    width: 100%;
    height: 52px;
    border: 1.5px solid var(--gpdp-ink);
    border-radius: 4px;
    background: #fff;
    color: var(--gpdp-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    cursor: pointer;
}
body.gpdp .gpdp-oos-btn:hover {
    background: #f6f6f7;
}

/* ---- Flexible Payment Options ------------------------------------------------------------------- */
body.gpdp .gpdp-payments {
    margin-top: 16px;
    border: 1px solid var(--gpdp-line);
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}
body.gpdp .gpdp-payments summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--gpdp-ink);
    cursor: pointer;
}
body.gpdp .gpdp-payments summary::-webkit-details-marker {
    display: none;
}
body.gpdp .gpdp-payments summary .gpdp-logos {
    margin-left: auto;
}
body.gpdp .gpdp-payments[open] summary .gpdp-logos {
    display: none;
}
body.gpdp .gpdp-chev {
    flex: none;
    width: 7px;
    height: 7px;
    margin: 0 4px 3px 0;
    border-right: 2px solid #444;
    border-bottom: 2px solid #444;
    transform: rotate(45deg);
}
body.gpdp .gpdp-payments[open] .gpdp-chev {
    margin-left: auto;
    transform: rotate(225deg);
    margin-bottom: -3px;
}
body.gpdp .gpdp-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
body.gpdp .gpdp-logo {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 28px;
    border: 1px solid var(--gpdp-line);
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}
body.gpdp .gpdp-payments summary .gpdp-logo {
    width: 42px;
    height: 27px;
}
body.gpdp .gpdp-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.gpdp .gpdp-logo.contain img {
    object-fit: contain;
}
body.gpdp .gpdp-logo.wide {
    width: 62px;
}
body.gpdp .gpdp-logo.wide img {
    object-fit: contain;
    padding: 2px 3px;
}
body.gpdp .gpdp-logo.wide.fill img {
    object-fit: cover;
    padding: 0;
}
body.gpdp .gpdp-logo.card-icon {
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='16' viewBox='0 0 24 18' fill='none' stroke='%231d1d1f' stroke-width='1.8'><rect x='1' y='1' width='22' height='16' rx='2.5'/><path d='M1 6h22M5 12h5'/></svg>") no-repeat center;
}
body.gpdp .gpdp-pm {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-top: 1px solid var(--gpdp-line);
    background: #fff;
    font-size: 13px;
    color: var(--gpdp-muted);
    line-height: 1.4;
}
body.gpdp .gpdp-pm b {
    display: block;
    color: var(--gpdp-ink);
    font-size: 14px;
}
body.gpdp .gpdp-pm .gpdp-logos {
    flex: none;
    width: 96px;
}

/* ---- trust tiles ------------------------------------------------------------------------------ */
body.gpdp .gpdp-trust {
    display: grid;
    grid-template-columns: repeat(var(--gpdp-cols, 3), minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}
body.gpdp .gpdp-tile {
    background: #fff;
    border: 1px solid var(--gpdp-line);
    border-radius: 4px;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    color: #1a1a1a;
    line-height: 1.35;
}
body.gpdp .gpdp-tile svg {
    display: block;
    margin: 0 auto;
    color: var(--gpdp-ink);
}
body.gpdp .gpdp-tile b {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #111;
}
body.gpdp .gpdp-tile a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.gpdp .gpdp-tile.t-pp {
    background: #fff;
}

/* ---- sale countdown strip (MageWorx timer) --------------------------------------------------- */
body.gpdp .product-info-price > .gpdp-deal {
    flex: 0 0 100%;
}
body.gpdp .gpdp-deal {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    padding: 8px 12px;
    border-radius: 4px;
    background: #fdecec;
    color: var(--gpdp-red);
    font-size: 13.5px;
    font-weight: 600;
}
body.gpdp .gpdp-deal b {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
body.gpdp .gpdp-deal.is-later {
    display: none !important;
}

/* ---- express tile ----------------------------------------------------------------------------- */
body.gpdp .gpdp-tile.t-express {
    background: #fff;
}
body.gpdp .gpdp-tile.t-express svg {
    color: var(--gpdp-amber);
}
body.gpdp .gpdp-express-count {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gpdp-amber);
}
body.gpdp .gpdp-express-count:empty {
    display: none;
}

/* ---- phone: Qty, price and Buy Now pinned to the bottom of the screen --------------------------- */
body.gpdp .gpdp-mbar-price {
    display: none;
}
@media (max-width: 767px) {
    body.gpdp .product-right .page-title-wrapper .page-title {
        font-size: 22px;
    }
    body.gpdp .product-info-price .price-box > .price-container .price,
    body.gpdp .product-info-price .price-box .special-price .price,
    body.gpdp .product-info-price .price-box .normal-price .price {
        font-size: 32px;
    }
    body.gpdp .product-info-price > .product-info-stock-sku {
        margin-bottom: 14px;
    }
    body.gpdp .gpdp-tile {
        padding: 10px 4px;
        font-size: 11px;
    }
    body.gpdp .gpdp-tile b {
        font-size: 12px;
    }
    body.gpdp .gpdp-trust {
        gap: 6px;
    }
    /* payment logos drop onto their own line under the heading */
    body.gpdp .gpdp-payments summary {
        flex-wrap: wrap;
        row-gap: 8px;
    }
    body.gpdp .gpdp-payments summary .gpdp-logos {
        order: 3;
        flex-basis: 100%;
        margin-left: 0;
    }
    body.gpdp .gpdp-payments summary .gpdp-chev {
        margin-left: auto;
    }

    /* the bar: overrides Codazon's top "floating add to cart" so it is always pinned at the bottom */
    body.gpdp #qtybox-anchor {
        min-height: 0 !important;
    }
    body.gpdp .product-add-form .box-tocart,
    body.gpdp .product-add-form .box-tocart.att-scr-qty,
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 900;
        width: auto;
        margin: 0 !important;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
        background: #fff !important;
        border-top: 1px solid var(--gpdp-line);
        box-shadow: 0 -6px 18px rgba(0, 0, 0, .06);
        transform: none !important;
        animation: none !important;
    }
    body.gpdp .product-add-form .box-tocart .fieldset,
    body.gpdp .product-add-form .box-tocart .fieldset.container {
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: none;
        padding: 0;
    }
    /* Codazon's floating-bar sizing (fixed-width qty, centred row) doesn't fit a phone */
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active .fieldset {
        justify-content: flex-start;
    }
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active .field.qty {
        width: auto;
        margin: 0 !important;
    }
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active .field.qty .cart-qty {
        border: 1px solid var(--gpdp-line);
    }
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active .field.qty .qty {
        height: 42px;
    }
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active .actions {
        flex: 1;
        width: auto;
    }
    body.gpdp .product-add-form .box-tocart.att-scr-qty.active .actions > .action.primary.buy-now {
        max-width: none;
        min-width: 0;
        height: 44px !important;
        line-height: 44px !important;
    }
    body.gpdp .product-add-form .box-tocart .scr-pinfo,
    body.gpdp .product-add-form .box-tocart .scr-pdeal {
        display: none !important;
    }
    body.gpdp .product-add-form .box-tocart .cart-qty {
        height: 44px;
    }
    body.gpdp .product-add-form .box-tocart .cart-qty .qty-ctl button {
        width: 30px;
        height: 42px;
    }
    body.gpdp .product-add-form .box-tocart .cart-qty .qty-ctl button::before {
        line-height: 42px;
    }
    body.gpdp .product-add-form .box-tocart .cart-qty input.qty {
        width: 26px;
        height: 42px;
    }
    body.gpdp .gpdp-mbar-price {
        display: flex;
        flex-direction: column;
        flex: none;
        min-width: 0;
        line-height: 1.1;
    }
    body.gpdp .gpdp-mbar-price b {
        font-size: 16px;
        font-weight: 800;
        letter-spacing: -.01em;
        white-space: nowrap;
        color: var(--gpdp-ink);
    }
    body.gpdp .gpdp-mbar-price s {
        font-size: 12px;
        font-weight: 600;
        color: var(--gpdp-muted);
    }
    body.gpdp .gpdp-mbar-price s:empty {
        display: none;
    }
    body.gpdp .product-add-form .box-tocart .action.primary.tocart,
    body.gpdp .product-add-form .box-tocart .action.primary.buy-now {
        height: 44px !important;
        line-height: 44px !important;
        font-size: 15px !important;
        width: 100% !important;
        padding: 0 10px !important;
    }
    body.gpdp .product-add-form .box-tocart .action.primary span {
        display: inline !important;
    }
    /* keep the page's last content clear of the bar; clip stray wide elements (e.g. the review form's rating
       radios) so the phone's viewport isn't widened, which would push a fixed bar below the screen */
    body.gpdp .page-wrapper {
        padding-bottom: 72px;
        overflow-x: clip;
    }
    body.gpdp .product-add-form .product-options-wrapper:has(.gpdp-pp-field) {
        order: 0;
    }
    body.gpdp .gpdp-pp-field {
        margin-top: 18px;
    }

    /* out of stock: "Check store availability" takes the bar (the stock line already says out of stock) */
    body.gpdp .gpdp-oos {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        margin: 0;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--gpdp-line);
        box-shadow: 0 -6px 18px rgba(0, 0, 0, .06);
    }
    body.gpdp .gpdp-oos-head {
        display: none;
    }
    body.gpdp .gpdp-oos-btn {
        height: 44px;
    }
}


/* ---- 60 / 40 split: gallery / details (desktop) -------------------------------------------- */
@media (min-width: 768px) {
    body.gpdp .product-info-main .product-left {
        width: 60%;
        flex: 0 0 60%;
        max-width: 60%;
    }
    body.gpdp .product-info-main .product-right {
        width: 40%;
        flex: 0 0 40%;
        max-width: 40%;
    }
}

/* ---- product label inset on the main image --------------------------------------------------
   The gallery template sets left to the thumbnail width only (inline style, 80px on this store).
   Fotorama then starts the photo one thumb-gap further over (moreview margin, 10px), so a fixed
   left of "thumb + 16" still lands on the photo's edge. Nipuna's custom CSS also pins the wrap
   to top: 0 !important, which beat the earlier 16px and glued the pill to the top corner.
   Keep the inline thumb offset and step 32px inside the photo, on the top and the left. */
body.gpdp-labels.catalog-product-view .gallery-container .left.label-wrap.vertical {
    top: 32px !important;
    margin-left: 42px; /* 10px thumb gap + 32px inside the photo */
}
body.gpdp-labels.catalog-product-view .gallery-container .left.label-wrap.vertical .cdz-product-labels {
    margin-left: 0 !important;
}
@media (max-width: 767px) {
    body.gpdp-labels.catalog-product-view .gallery-container .label-wrap,
    body.gpdp-labels.catalog-product-view .gallery-container .label-wrap.left,
    body.gpdp-labels.catalog-product-view .gallery-container .left.label-wrap.vertical {
        left: 16px !important;
        top: 16px !important;
        margin-left: 0;
    }
}

/* ---- quantity picker always to the left of the button ---------------------------------------- */
body.gpdp .product-add-form .box-tocart .fieldset > .field.qty {
    order: 0;
}
body.gpdp .product-add-form .box-tocart .fieldset > .actions {
    order: 1;
}

/* theme adds a 10px gap inside the qty field (custom-updated.css): the +/- buttons and number sit tight */
body.gpdp.catalog-product-view #qtybox-anchor .field.qty {
    gap: 0;
}

/* qty at the stock limit: + dimmed, tooltip says why */
body.gpdp .box-tocart .qty-ctl .increase.is-max {
    opacity: .35;
    cursor: not-allowed;
}
body.gpdp .box-tocart .qty-ctl .increase,
body.gpdp .box-tocart .qty-ctl .decrease {
    display: block !important;
}

/* ---- phone: no frame around the image, tighter gap under Protect Plus --------------------------- */
@media (max-width: 767px) {
    body.gpdp .fotorama__stage,
    body.gpdp .gallery-placeholder .fotorama__stage {
        border: 0 !important;
    }
    /* the buy bar is fixed to the screen, so its empty slot in the form shouldn't leave a gap */
    body.gpdp .product-add-form .product-options-bottom {
        height: 0;
        min-height: 0;
        margin: 0;
        padding: 0;
    }
    body.gpdp .product-add-form .box-tocart {
        height: auto;
    }
    body.gpdp .product-add-form .mageworx-stock-status,
    body.gpdp #qtybox-anchor {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        height: 0 !important;
    }
    body.gpdp .gpdp-extras {
        margin-top: -8px;
    }
}

/* price, was-price and save pill share one centre line */
body.gpdp .product-info-price .price-box .price-container,
body.gpdp .product-info-price .price-box .price-wrapper,
body.gpdp .product-info-price .price-box .price {
    line-height: 1;
}
body.gpdp .product-info-price {
    align-items: center;
}
body.gpdp .product-info-price .gpdp-save {
    align-self: center;
}
@media (max-width: 767px) {
    body.gpdp .gpdp-brandrow {
        padding-top: 20px;
    }
}
body.gpdp .product-info-price .gpdp-save {
    transform: translateY(-3px);
}

/* product details tabs: the theme pads this block 15px 30px (and 0 15px 25px on a phone) */
body.gpdp .product.info.detailed .product.items {
    padding: 0;
}

/* ---- consistency pass: one border, one radius, one heading size ---------------------------------
 * Tiles/cards: 1px #e3e3e6, 4px radius.   Section headings: 20px / 600 Urbanist.
 * Scoped to the product page (html body.gpdp), so category pages are untouched. */
html body.gpdp .product-item-top,
html body.gpdp a.gx-stepup,
html body.gpdp .gpdp-pp,
html body.gpdp .gpdp-pp-face,
html body.gpdp .gpdp-payments,
html body.gpdp .gpdp-tile {
    border: 1px solid var(--gpdp-line) !important;
    border-radius: 4px !important;
}
html body.gpdp a.gx-stepup:hover {
    border-color: var(--gpdp-ink) !important;
}
html body.gpdp .product-item-top {
    overflow: hidden !important;
    background: #fff !important;
}
html body.gpdp .product.info.detailed .product.items .item.content,
html body.gpdp .product.info.detailed .items .item.content {
    border-width: 1px !important;
    border-color: var(--gpdp-line) !important;
}

html body.gpdp .block-title.title strong,
html body.gpdp .block-title.title > *,
html body.gpdp .gx-stepup-title,
html body.gpdp .product.info.detailed h2,
html body.gpdp .product.attribute.description h2 {
    font-family: 'Urbanist', sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    color: #111 !important;
}

/* product names and prices inside tiles */
html body.gpdp .product-item-name a,
html body.gpdp .product-item-link {
    font-family: 'Urbanist', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
}
html body.gpdp .product-item-details .price,
html body.gpdp .product-item .price-box .price {
    font-family: 'Urbanist', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* Main button = Add to Cart: hide Buy Now everywhere, including Codazon's floating bar */
body.gpdp-addtocart-only .product-add-form .box-tocart .actions .action.buy-now {
    display: none !important;
}
body.gpdp-addtocart-only .product-add-form .box-tocart.att-scr-qty.active .actions > .action.primary.tocart {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 44px !important;
    font-size: 15px !important;
    padding: 0 10px !important;
}
body.gpdp-addtocart-only .product-add-form .box-tocart.att-scr-qty.active .actions > .action.primary.tocart > span {
    display: inline !important;
}
body.gpdp-addtocart-only .product-add-form .box-tocart.att-scr-qty.active .actions > .action.primary.tocart::before {
    display: none !important;
}

/* ---- main image frame (fotorama) -----------------------------------------------------------------
 * Fotorama sizes the stage to the full gallery width and then shifts it right by the thumbnail column
 * (inline left: 90px), so its right edge hangs under the details column and the border is clipped.
 * Shrink it by that offset instead; with no thumbnails, drop the offset (buybox.js adds .gpdp-no-thumbs). */
@media (min-width: 768px) {
    body.gpdp.product-view-style-03 .product.media .fotorama__stage {
        width: calc(100% - var(--stage-left, 0px)) !important;
        max-width: none !important;
        border: 1px solid var(--gpdp-line) !important;
        border-radius: 4px;
        box-sizing: border-box;
    }
    /* Fotorama insets the next arrow by the thumbnail column. The stage is already
       shrunk by that amount, so the extra inset left the chevron floating in the photo. */
    body.gpdp .product.media .fotorama__arr--next,
    body.gpdp .product.media .fotorama__fullscreen-icon {
        right: 0 !important;
    }
    body.gpdp .product.media.gpdp-no-thumbs .fotorama__stage {
        left: 0 !important;
        width: 100% !important;
    }
    body.gpdp .product.media.gpdp-no-thumbs .fotorama__stage__shaft {
        max-width: 100% !important;
        width: 100% !important;
    }
    body.gpdp .product.media.gpdp-no-thumbs .fotorama__stage__frame {
        width: 100% !important;
    }
    body.gpdp .product.media.gpdp-no-thumbs .fotorama__nav-wrap {
        display: none !important;
    }
    body.gpdp-labels.catalog-product-view .product.media.gpdp-no-thumbs .gallery-container .left.label-wrap.vertical {
        left: 0 !important;
        margin-left: 32px;
    }
}

/* Specifications table: a theme stylesheet (custom-updated.css) turns each value cell into a flex box under
 * 768px, so it stops lining up with its label; and line-height: 1 makes values shorter than labels. */
html body.gpdp #product-attribute-specs-table {
    display: table;
    width: 100%;
}
/* Under 640px Magento's responsive-table styles make the table, tbody and rows display: block (so each row
 * sizes its own columns) and repeat the label before every value via td::before; keep it a real table */
html body.gpdp #product-attribute-specs-table > tbody {
    display: table-row-group;
}
html body.gpdp #product-attribute-specs-table > tbody > tr {
    display: table-row;
}
html body.gpdp #product-attribute-specs-table td::before {
    content: none;
}
html body.gpdp #product-attribute-specs-table th,
html body.gpdp #product-attribute-specs-table td {
    display: table-cell;
    padding: 10px 12px;
    line-height: 1.4;
    vertical-align: middle;
}
html body.gpdp #product-attribute-specs-table th {
    width: 35%;
}

/* "More view" toggle: an inline admin style forces every element in the tab to #222 !important,
 * which made the label black on the theme's black button */
html body.gpdp .product.info.detailed .data.item.content .panel-toggle-wrap .content-toggle,
html body.gpdp .product.info.detailed .data.item.content .panel-toggle-wrap .content-toggle * {
    color: #fff !important;
}
html body.gpdp .product.info.detailed .data.item.content .panel-toggle-wrap .content-toggle {
    border-color: #000;
}
html body.gpdp .product.info.detailed .data.item.content .panel-toggle-wrap .content-toggle:hover,
html body.gpdp .product.info.detailed .data.item.content .panel-toggle-wrap .content-toggle:hover * {
    color: #000 !important;
}
