/* A single customer-page palette. The named layer gives these important theme
   declarations precedence over the legacy unlayered important color patches.
   Layout, visibility, quantities, payment and checkout behavior stay in their
   existing styles and scripts. */
@layer center2016-pages {
  body.center2016-theme {
    --c-page:#f6f6f6;--c-card:#fff;--c-soft:#f3f3f3;--c-border:#dedede;
    --c-text:#202020;--c-muted:#616161;--c-red:#c91620;--c-red-hover:#a80f18;
    --c-tint:#fcebed;--c-shadow:0 8px 28px rgba(0,0,0,.06);
    background:var(--c-page)!important;color:var(--c-text)!important;
    accent-color:var(--c-red);
  }
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page) {
    --phase159-red:var(--c-red)!important;--phase159-red2:var(--c-red-hover)!important;
    --phase159-text:var(--c-text)!important;--phase159-muted:var(--c-muted)!important;
    --phase159-bg:var(--c-page)!important;--phase159-border:var(--c-border)!important;
    --phase159-shadow:var(--c-shadow)!important;
    --p162-text:var(--c-text)!important;--p162-muted:var(--c-muted)!important;
    --p162-gold:var(--c-red)!important;--p162-pink:var(--c-red)!important;
    --p162-pink2:var(--c-red-hover)!important;--p162-border:var(--c-border)!important;
    background:var(--c-page)!important;color:var(--c-text)!important;
  }
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page) :is(
    .glass,.client-card,.auth-card,.glass-card,.v43-order-card,.v43-address-card,
    .wallet-transaction,.pwa-device-card,.reward-row,.review-card,
    .phase163-notifications-panel,.phase163-notification-item,.client-cart-row,
    .phase162-cart-item,.phase101-cart-upsell-card) {
    background:var(--c-card)!important;color:var(--c-text)!important;
    border-color:var(--c-border)!important;box-shadow:var(--c-shadow)!important;
    text-shadow:none!important;
  }
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page,.checkout-terms-modal__panel) :is(h1,h2,h3,h4,b,strong,label,legend) {
    color:inherit!important;text-shadow:none!important;
  }
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page) :is(p,small,.muted,.field-label,.client-field-label,.client-cart-unit-price,.client-cart-flavor,.phase162-cart-item__info small,.wallet-transaction__meta) {
    color:var(--c-muted)!important;
  }
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page) :is(
    .phase159-card-title,.phase162-step b,.summary-total span,.summary-line b,
    .payment-option__body strong,.phase162-address-summary b,
    .checkout-fulfillment-location-v159 b,.phase160-order-preview__item b,
    .phase163-notification-copy strong,.v43-order-number,.empty-state) {
    color:var(--c-text)!important;
  }
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page) :is(
    .summary-line span,.phase162-address-summary span,.checkout-submit-final__summary,
    .checkout-fulfillment-location-v159 span,.phase160-soft-banner small,
    .phase163-notifications-empty,.v43-order-meta,.social-login-divider,
    .loyalty-stamp-card-foot,.loyalty-stamp-card-head p) {color:var(--c-muted)!important}
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page) :is(
    .back-link,.client-back-link,.client-line-total,.summary-total strong,
    .phase159-card-title i,.phase162-address-summary p,.phase162-address-editor>summary,
    .phase161-more-details summary,.wallet-balance-hero strong,.wallet-transaction__amount b,
    .phase163-notification-link,.loyalty-points-card strong,.loyalty-stamp-eyebrow,
    .phase101-cart-upsell-info span) {color:var(--c-red)!important}

  /* Inputs and all quantity controls remain legible on the white cards. */
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
    background:var(--c-card)!important;color:var(--c-text)!important;
    border-color:var(--c-border)!important;box-shadow:none!important;
  }
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page) :is(input,textarea)::placeholder {color:#707070!important;opacity:1}
  body.center2016-theme :is(.client-page,.auth-wrap) :is(input[type="radio"],input[type="checkbox"]) {accent-color:var(--c-red)!important}
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page) :is(input,select,textarea):focus {
    border-color:var(--c-red)!important;outline:2px solid var(--c-tint);outline-offset:1px;
  }
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page) :is(a,button):focus-visible {outline:3px solid var(--c-red);outline-offset:3px}
  body.center2016-theme :is(.client-qty-stepper,.phase162-qty,.coupon-box,.phase161-more-details,.phase162-address-editor) {
    background:var(--c-soft)!important;color:var(--c-text)!important;border-color:var(--c-border)!important;box-shadow:none!important;
  }
  body.center2016-theme :is(.client-qty-stepper,.phase162-qty) button {
    background:var(--c-card)!important;color:var(--c-red)!important;box-shadow:none!important;border-color:var(--c-border)!important;
  }
  body.center2016-theme :is(.client-qty-stepper,.phase162-qty) input {color:var(--c-text)!important;background:var(--c-card)!important}

  /* Neutral summaries and rose-tinted selected delivery/payment methods. */
  body.center2016-theme :is(.cart-fulfillment-box,.checkout-delivery-options,
    .checkout-fulfillment-location-v159,.cart-fulfillment-location,.phase162-order-summary,
    .phase160-order-preview,.phase160-soft-banner,.client-check,.checkout-submit-final,
    .phase160-account-banner,.cart-personal-promo-card,.pwa-download-note,.bit-payment-box,.phase101-cart-upsell,
    .phase163-notifications-empty,.phase163-notification-item.is-unread,
    .loyalty-stamp-wallet,.loyalty-points-card) {
    background:var(--c-soft)!important;color:var(--c-text)!important;
    border-color:var(--c-border)!important;box-shadow:none!important;
  }
  body.center2016-theme :is(.cart-fulfillment-choice,.checkout-fulfillment-option-v159,.payment-option,.checkout-delivery-chip) {
    background:var(--c-card)!important;color:var(--c-text)!important;
    border-color:var(--c-border)!important;box-shadow:none!important;
  }
  body.center2016-theme :is(.cart-fulfillment-choice,.checkout-fulfillment-option-v159).is-active,
  body.center2016-theme .payment-option:has(input:checked) {
    background:var(--c-tint)!important;color:var(--c-text)!important;
    border-color:var(--c-red)!important;box-shadow:0 0 0 1px var(--c-red)!important;
  }
  body.center2016-theme :is(.cart-choice-icon,.phase159-method-icon,.payment-option__icon,
    .checkout-fulfillment-location-v159>i,.phase163-notification-icon,.client-about-icon,
    .wallet-balance-hero__icon,.pwa-download-icon,.pwa-device-card>i,.track-hero-icon,
    .phase160-soft-banner>i,.payment-option__balance,.pwa-kicker,.pwa-install-platform) {
    background:var(--c-tint)!important;color:var(--c-red)!important;border-color:#f1c6c9!important;box-shadow:none!important;
  }
  body.center2016-theme :is(.cart-choice-check,.phase159-radio-dot) {
    background:var(--c-card)!important;border-color:#9b9b9b!important;color:transparent!important;
  }
  body.center2016-theme .is-active :is(.cart-choice-check,.phase159-radio-dot),
  body.center2016-theme .payment-option:has(input:checked)::after {
    background:var(--c-red)!important;border-color:var(--c-red)!important;color:#fff!important;
  }
  body.center2016-theme .checkout-delivery-chip.is-active {
    background:var(--c-red)!important;border-color:var(--c-red)!important;color:#fff!important;
  }
  body.center2016-theme .checkout-delivery-chip.is-active :is(b,small,span) {color:#fff!important}
  body.center2016-theme .checkout-delivery-note {color:var(--c-muted)!important}
  body.center2016-theme .phase162-stepper>i {background:var(--c-border)!important}
  body.center2016-theme .phase162-step span {
    background:var(--c-card)!important;color:var(--c-muted)!important;border-color:var(--c-border)!important;box-shadow:none!important;
  }
  body.center2016-theme .phase162-step.is-done span {background:var(--c-tint)!important;color:var(--c-red)!important}
  body.center2016-theme .phase162-step.is-active span {background:var(--c-red)!important;color:#fff!important;border-color:var(--c-red)!important;box-shadow:none!important}
  body.center2016-theme .phase162-step.is-active b {color:var(--c-red)!important}

  /* Primary actions share the logo red; secondary actions remain neutral. */
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page,.checkout-terms-modal__panel,.pwa-install-card) :is(
    .btn,.phase159-continue-btn,.checkout-submit-final__button,.phase101-cart-upsell-add) {
    background:var(--c-red)!important;color:#fff!important;border-color:var(--c-red)!important;box-shadow:none!important;
  }
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page,.checkout-terms-modal__panel,.pwa-install-card) .btn:hover,
  body.center2016-theme :is(.phase159-continue-btn,.checkout-submit-final__button):hover {background:var(--c-red-hover)!important;color:#fff!important}
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page,.checkout-terms-modal__panel,.pwa-install-card) :is(.btn.secondary,.btn.ghost,.checkout-action-btn,.social-login-btn,.phase103-upsell-nav) {
    background:var(--c-card)!important;color:var(--c-text)!important;border:1px solid var(--c-border)!important;box-shadow:none!important;
  }
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page,.checkout-terms-modal__panel,.pwa-install-card) :is(.btn,.checkout-submit-final__button,.phase159-continue-btn) :is(i,b,span,strong,small) {color:inherit!important}
  body.center2016-theme :is(.client-page,.auth-wrap,.pwa-download-page) :is(button:disabled,.btn[aria-disabled="true"]) {
    background:#ececec!important;color:#696969!important;border-color:#dedede!important;box-shadow:none!important;
  }
  body.center2016-theme :is(.cart-remove,.text-danger,.btn.danger) {background:#fff0f1!important;color:#ac1421!important;border-color:#efbfc4!important;box-shadow:none!important}

  /* Confirmation, product and legal dialogs use the same card surfaces. */
  body.center2016-theme :is(.checkout-terms-modal__panel,.v24-product-modal__panel,.pwa-install-card) {
    background:var(--c-card)!important;color:var(--c-text)!important;border-color:var(--c-border)!important;
    box-shadow:0 20px 70px rgba(0,0,0,.20)!important;
  }
  body.center2016-theme :is(.checkout-confirm-modal h2,.checkout-terms-modal__content,.checkout-confirm-modal__lead,.checkout-confirm-modal__terms summary,.checkout-submit-final__summary strong) {color:var(--c-text)!important}
  body.center2016-theme :is(.checkout-confirm-modal__notice,.checkout-confirm-modal__terms,.checkout-terms-modal__content) {
    background:var(--c-soft)!important;color:var(--c-muted)!important;border-color:var(--c-border)!important;
  }
  body.center2016-theme .checkout-terms-modal__actions {background:var(--c-card)!important;border-color:var(--c-border)!important;box-shadow:none!important}
  body.center2016-theme :is(.checkout-confirm-modal__icon,.checkout-confirm-modal__notice i) {background:var(--c-tint)!important;color:var(--c-red)!important;box-shadow:none!important}
  body.center2016-theme :is(.checkout-terms-modal__close,.v24-product-modal__close) {background:var(--c-soft)!important;color:var(--c-text)!important;border-color:var(--c-border)!important}
  body.center2016-theme :is(.client-page,.pwa-download-page) :is(th,td) {background:var(--c-card)!important;color:var(--c-text)!important;border-color:var(--c-border)!important}
  body.center2016-theme :is(.client-page,.pwa-download-page) th {background:var(--c-soft)!important;color:var(--c-muted)!important}
  body.center2016-theme :is(.v43-order-card,.v43-address-card)::before {background:var(--c-border)!important}
  body.center2016-theme :is(.loyalty-points-card>span,.loyalty-stamp-card-foot,.payment-option__body small) {color:var(--c-muted)!important}
  body.center2016-theme :is(.loyalty-points-card>b,.v43-status-badge) {background:var(--c-tint)!important;color:var(--c-red-hover)!important;border-color:#f1c6c9!important}

  /* Preserve meaningful success, warning and error colors. */
  body.center2016-theme :is(.alert,.checkout-error-card,.status-cancelled,.status-failed) {background:#fff0f1!important;color:#ac1421!important;border-color:#efbfc4!important}
  body.center2016-theme :is(.alert.ok,.alert.success,.status-delivered,.status-paid,.status-completed) {background:#eaf7ef!important;color:#156c3e!important;border-color:#bcdfca!important}
  body.center2016-theme :is(.alert.warn,.status-pending,.status-awaiting_payment) {background:#fff4d6!important;color:#855100!important;border-color:#e7d4a1!important}
  body.center2016-theme :is(.status-processing,.status-confirmed,.status-preparing) {background:var(--c-tint)!important;color:var(--c-red-hover)!important;border-color:#f1c6c9!important}
}

/* Customer surfaces, overlays and safe areas share one palette on Safari/PWA. */
@layer center2016-pages {
  html:has(body.center2016-theme) { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
  body.center2016-theme {
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
    font-size:16px!important;line-height:1.5!important;
    --c-nav-height:72px; --c-safe-bottom:env(safe-area-inset-bottom,0px);
    color-scheme:light;
  }
  body.center2016-theme.v68-theme-dark {
    --c-page:#151719;--c-card:#202326;--c-soft:#2b2e32;--c-border:#44484d;
    --c-text:#f5f5f5;--c-muted:#c1c5ca;--c-tint:#48252b;--c-red:#ee6470;
    --c-red-hover:#ff8790;--c-shadow:0 6px 20px rgba(0,0,0,.18);
    color-scheme:dark;
  }
  body.center2016-theme.v68-high-contrast {
    --c-page:#fff;--c-card:#fff;--c-soft:#fff;--c-border:#000;
    --c-text:#000;--c-muted:#222;--c-red:#a50012;--c-tint:#fff;
  }
  body.center2016-theme :is(button,input,select,textarea) {font-family:inherit!important}
  body.center2016-theme :is(.v20-shop-shell,.v20-main-content,.v43-catalog-section,.market-departments) {
    background:var(--c-page)!important;color:var(--c-text)!important;
    border-color:var(--c-border)!important;box-shadow:none!important;
  }
  body.center2016-theme :is(.v20-product-card,.market-department,.v20-topbar,.client-v32-mobile-header,
    .v24-product-modal__panel,.v68-modal-panel,.v68-accessibility-panel,.v69-age-box,.age-box,
    .pwa-install-card,.v20-sidebar,.v39-global-sidebar,.bottom-nav) {
    background:var(--c-card)!important;color:var(--c-text)!important;
    border-color:var(--c-border)!important;box-shadow:var(--c-shadow)!important;
    text-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  }
  body.center2016-theme :is(.v20-product-info h3,.v20-section-title,.market-department strong,
    .v24-product-modal__body h2,.v20-price,.client-v32-brand,.v69-age-box h2,.v69-age-brand strong) {color:var(--c-text)!important}
  body.center2016-theme :is(.v20-unit,.v37-slider-hint,.v69-age-body,.v69-age-brand span,.v24-product-modal__body .muted) {color:var(--c-muted)!important}
  body.center2016-theme :is(.v20-heart,.v24-price-option,.v68-accessibility-actions button,.v68-language-option,
    .v20-category-chips a,.market-department>span,.v24-product-modal__close) {
    background:var(--c-soft)!important;color:var(--c-text)!important;border-color:var(--c-border)!important;box-shadow:none!important;
  }
  body.center2016-theme :is(.v20-category-chips a.active,.bottom-nav .nav-item.active) {background:var(--c-tint)!important;color:var(--c-red)!important;border-color:transparent!important}
  body.center2016-theme :is(.v20-add,.v69-age-confirm) {background:#c91620!important;color:#fff!important;border-color:#c91620!important}
  body.center2016-theme :is(.v69-age-decline,.v20-menu-btn,.client-v32-icon-btn,.client-v32-cart-btn) {background:var(--c-soft)!important;color:var(--c-text)!important;border-color:var(--c-border)!important}
  body.center2016-theme .cart-toast {
    position:fixed!important;inset:auto!important;top:auto!important;inset-block-start:auto!important;
    bottom:calc(var(--c-nav-height) + 24px + var(--c-safe-bottom))!important;
    left:12px!important;right:12px!important;width:auto!important;min-width:0!important;
    max-width:440px!important;margin:0 auto!important;height:auto!important;min-height:56px!important;
    padding:12px 16px!important;display:flex!important;gap:12px!important;align-items:center!important;
    border:1px solid var(--c-border)!important;border-radius:16px!important;
    background:var(--c-card)!important;color:var(--c-text)!important;
    box-shadow:0 8px 28px rgba(0,0,0,.16)!important;z-index:250!important;
    transform:translateY(12px)!important;opacity:0!important;visibility:hidden!important;
    pointer-events:none!important;transition:opacity .18s,transform .18s!important;
  }
  body.center2016-theme .cart-toast.show {transform:translateY(0)!important;opacity:1!important;visibility:visible!important}
  body.center2016-theme .cart-toast>div {min-width:0!important}
  body.center2016-theme .cart-toast b {color:var(--c-text)!important;font-size:15px!important;line-height:1.4!important}
  body.center2016-theme .cart-toast span {color:var(--c-muted)!important;font-size:13px!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.4!important}
  body.center2016-theme .cart-toast i {color:#17824a!important;font-size:24px!important;flex-shrink:0}
  body.center2016-theme .restricted-catalog-notice {
    margin:16px 0;padding:18px;border:1px solid var(--c-border);border-inline-start:4px solid var(--c-red);
    border-radius:14px;background:var(--c-card);color:var(--c-text);
  }
  body.center2016-theme .restricted-catalog-notice p {margin:8px 0 0;line-height:1.65}
  body.center2016-theme .restricted-product-label {font-size:13px;color:var(--c-muted);line-height:1.5}
  body.center2016-theme .v69-age-legal {background:var(--c-soft)!important;color:var(--c-text)!important;border-color:var(--c-border)!important}
  body.center2016-theme .v69-age-modal {z-index:10000!important;padding:16px!important}
  body.center2016-theme .v69-age-box {max-height:calc(100dvh - 32px)!important;overflow:auto!important;overscroll-behavior:contain}
  body.center2016-theme .v69-age-denied {color:#b50017!important;background:#fff0f2!important}
  body.center2016-theme .v24-product-modal.is-view-only :is(#productModalPrices,#productModalFlavorWrap,#productModalAmountWrap,.v24-modal-total,.v24-modal-buy,.v24-modal-qty,#productModalAdd) {display:none!important}
  body.center2016-theme .v24-product-modal.is-view-only label:has(#productModalQty) {display:none!important}
  body.center2016-theme .v24-product-modal.is-view-only .v24-product-modal__body {align-content:start!important}
  @media(max-width:900px) {
    body.center2016-theme {padding-bottom:calc(var(--c-nav-height) + 32px + var(--c-safe-bottom))!important}
    body.center2016-theme .bottom-nav.bottom-nav-v27 {
      position:fixed!important;top:auto!important;bottom:calc(8px + var(--c-safe-bottom))!important;
      left:10px!important;right:10px!important;max-width:520px!important;margin-inline:auto!important;
      height:var(--c-nav-height)!important;padding:7px!important;border-radius:20px!important;
      box-sizing:border-box!important;transform:none!important;z-index:200!important;
    }
    body.center2016-theme .bottom-nav .nav-item {font-size:11px!important;font-weight:600!important;min-width:0!important;gap:5px!important;border-radius:14px!important;color:var(--c-muted)!important}
    body.center2016-theme .bottom-nav .nav-item span {font-size:10px!important;line-height:1.2!important;white-space:normal!important;text-overflow:clip!important;overflow:visible!important;overflow-wrap:anywhere}
    body.center2016-theme .bottom-nav .nav-item-cart {background:var(--c-tint)!important;color:var(--c-red)!important;border-color:transparent!important}
    body.center2016-theme .v20-main-content {padding-inline:12px!important}
    body.center2016-theme :is(.v43-catalog-section,.v43-home-category-section) {padding:14px 0!important;border:0!important;margin-block:12px!important}
    body.center2016-theme .v20-products-grid {gap:12px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
    body.center2016-theme .v20-product-card {padding:10px!important;border-radius:18px!important;min-width:0!important;overflow:hidden!important}
    body.center2016-theme .v20-product-image {height:auto!important;aspect-ratio:1!important;border-radius:12px!important;background:#fff!important;margin:0 0 10px!important}
    body.center2016-theme .v20-product-image img {width:100%!important;height:100%!important;object-fit:contain!important}
    body.center2016-theme .v20-product-info h3 {font-size:15px!important;font-weight:600!important;line-height:1.45!important;min-height:2.9em!important;margin:4px 0!important}
    body.center2016-theme .v20-unit {font-size:13px!important;margin-block:4px!important}
    body.center2016-theme .v20-price {font-size:16px!important;font-weight:700!important;white-space:nowrap}
    body.center2016-theme .v20-add {width:42px!important;height:42px!important;border-radius:14px!important;font-size:25px!important;min-width:42px}
    body.center2016-theme .v20-section-title {font-size:20px!important;line-height:1.35!important}
    body.center2016-theme :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {font-size:16px!important}
    body.center2016-theme :is(.v68-floating-language,.v68-floating-accessibility) {width:40px!important;height:40px!important;background:var(--c-card)!important;color:var(--c-text)!important;border:1px solid var(--c-border)!important;box-shadow:0 3px 12px rgba(0,0,0,.1)!important;right:12px!important;left:auto!important;z-index:210!important}
    body.center2016-theme .v68-floating-language {bottom:calc(var(--c-nav-height) + 24px + var(--c-safe-bottom))!important;font-size:11px!important}
    body.center2016-theme .v68-floating-accessibility {bottom:calc(var(--c-nav-height) + 72px + var(--c-safe-bottom))!important}
    body.center2016-theme:has(.cart-toast.show) :is(.v68-floating-language,.v68-floating-accessibility) {visibility:hidden!important}
    body.center2016-theme .v68-accessibility-panel {bottom:calc(var(--c-nav-height) + 24px + var(--c-safe-bottom))!important;max-height:65dvh!important;overflow:auto!important}
    body.center2016-theme .v24-product-modal__panel {max-height:calc(100dvh - 32px - var(--c-safe-bottom))!important;overscroll-behavior:contain}
  }
  @media(min-width:901px) {body.center2016-theme .cart-toast {bottom:24px!important}}
  @media(prefers-reduced-motion:reduce) {body.center2016-theme .cart-toast {transition:none!important}}
}
/* Selective age confirmation for manually marked general merchandise. */
.purchase-age-dialog{box-sizing:border-box;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid #d5d9df;border-radius:20px;background:#fff;color:#17212b;font:inherit;box-shadow:0 20px 80px #0005;text-align:start}
.purchase-age-dialog::backdrop{background:#0009}
.purchase-age-dialog h2{margin:0 0 12px;color:#a21b25;font-size:2rem}
.purchase-age-dialog p{margin:0 0 22px;line-height:1.7}
.purchase-age-actions{display:flex;flex-direction:column;gap:12px}
.purchase-age-actions button{min-height:46px;white-space:normal;line-height:1.5}
.purchase-age-badge{display:inline-block;padding:2px 8px;border-radius:6px;background:#fff0f0;color:#9c1721;font-size:.8rem;font-weight:700}
