/* Core 3.19.9 — public/customer-facing dark consistency.
   Loaded only when a Core public surface (auth, checkout, warranty, stock
   notify, cross-sell) is present. */

html[data-theme="dark"]{color-scheme:dark}

/* ---------- Back-in-stock ---------- */
html[data-theme="dark"] .gando-stock-notify{
  background:#141f18;
  border-color:#2e4034;
  color:#edf5ef;
}
html[data-theme="dark"] .gando-stock-notify__head>span{background:#1d3023;color:#a9d9b6}
html[data-theme="dark"] .gando-stock-notify__head small{color:#9eaca3}
html[data-theme="dark"] .gando-stock-notify input,
html[data-theme="dark"] .gando-stock-notify select{background:#101713;border-color:#304038;color:#edf5ef}
html[data-theme="dark"] .gando-stock-notify input::placeholder{color:#819087}
html[data-theme="dark"] .gando-stock-notify [data-stock-notify-message]{background:#14291b;color:#8bd7a4}
html[data-theme="dark"] .gando-stock-notify [data-stock-notify-message].is-error{background:#2d1716;color:#ffaaa2}

/* ---------- Warranty ---------- */
html[data-theme="dark"] .gando-warranty-page{
  --gw-green:#9fd4ad;
  --gw-green-2:#b9e1c5;
  --gw-text:#edf5ef;
  --gw-muted:#9eaca3;
  --gw-border:#2b3930;
  --gw-surface:#141b16;
  --gw-soft:#101713;
}
html[data-theme="dark"] .gando-warranty-service{box-shadow:0 18px 46px rgba(0,0,0,.3)}
html[data-theme="dark"] .gando-warranty-service__term{background:#1c2d22;color:#b8ddc2}
html[data-theme="dark"] .gando-warranty-tabs{background:#101713}
html[data-theme="dark"] .gando-warranty-tabs button{color:#a7b4ac!important}
html[data-theme="dark"] .gando-warranty-tabs button.is-active{background:#2d7046!important;color:#fff!important}
html[data-theme="dark"] .gando-warranty-field input{background:#101713!important;border-color:#304038!important;color:#edf5ef!important}
html[data-theme="dark"] .gando-warranty-field small{color:#94a198}
html[data-theme="dark"] .gando-warranty-policy span{background:#2b2414;color:#cbbd95}
html[data-theme="dark"] .gando-warranty-policy b{color:#f0d18a}
html[data-theme="dark"] .gando-warranty-card{background:#141b16;border-color:#2b3930}
html[data-theme="dark"] .gando-warranty-card.is-expired{background:#111713}
html[data-theme="dark"] .gando-warranty-card__top{border-color:#29362e}
html[data-theme="dark"] .gando-warranty-card__top strong{color:#b9e1c5}
html[data-theme="dark"] .gando-warranty-card__top span{background:#14291b;color:#8bd7a4}
html[data-theme="dark"] .gando-warranty-card.is-expired .gando-warranty-card__top span{background:#242b26;color:#abb5ae}
html[data-theme="dark"] .gando-warranty-card__grid small{color:#8f9d94}
html[data-theme="dark"] .gando-warranty-card__grid b{color:#e9f1ec}
html[data-theme="dark"] .gando-warranty-card__remaining{background:#17261d;color:#a9d9b6}
html[data-theme="dark"] .gando-warranty-empty{background:#111713;border-color:#304038;color:#a9b5ad}
html[data-theme="dark"] .gando-warranty-modal__dialog{background:#141b16;border:1px solid #2b3930;color:#edf5ef}
html[data-theme="dark"] .gando-warranty-modal__dialog p{color:#a2afa6}
html[data-theme="dark"] .gando-warranty-modal__icon{background:#1c3023;color:#a9d9b6}

/* ---------- Authentication modal finishing rules ---------- */
html[data-theme="dark"] .gando-auth :where(input,select,textarea):-webkit-autofill,
html[data-theme="dark"] .gando-auth :where(input,select,textarea):-webkit-autofill:hover,
html[data-theme="dark"] .gando-auth :where(input,select,textarea):-webkit-autofill:focus{
  -webkit-text-fill-color:#eef4f0;
  box-shadow:0 0 0 1000px #182019 inset!important;
  caret-color:#eef4f0;
}

/* ---------- Checkout: convert local light-only tokens to semantic dark values ---------- */
html[data-theme="dark"].rabino-checkout-page,
html[data-theme="dark"] body.rabino-checkout-active,
html[data-theme="dark"] body.rabino-checkout-thankyou{
  background:#0c110e!important;
}
html[data-theme="dark"] body.rabino-checkout-active{
  --ck-bg-white:#141b16;
  --ck-bg-input:#101713;
  --ck-bg-gray-light:#17221a;
  --ck-bg-gray:#18211b;
  --ck-bg-table-zebra:#172019;
  --ck-border-light:#253129;
  --ck-border-main:#2a342d;
  --ck-border-input:#304038;
  --ck-border-dark:#344238;
  --ck-text-dark:#f1f5f2;
  --ck-text-main:#e5ece7;
  --ck-text-muted:#a0aaa3;
  --ck-text-light:#8f9d94;
  --ck-text-lighter:#7f8e85;
  --ck-error:#ff8f86;
  --ck-error-bg:#2d1716;
  --ck-error-border:#57302c;
  --ck-shadow-soft:0 6px 20px rgba(0,0,0,.24);
  --ck-shadow-hover:0 10px 28px rgba(0,0,0,.32);
}
html[data-theme="dark"] body.rabino-checkout-active .woocommerce{background:#0c110e!important;color:var(--ck-text-main)!important}
html[data-theme="dark"] body.rabino-checkout-active .rabino-saved-addresses,
html[data-theme="dark"] body.rabino-checkout-active .rabino-new-address-label input{background:var(--ck-bg-white)!important;border-color:var(--ck-border-main)!important;color:var(--ck-text-main)!important}
html[data-theme="dark"] body.rabino-checkout-active #checkout-loader-overlay{background:rgba(8,13,10,.94)!important}
html[data-theme="dark"] body.rabino-checkout-active .checkout-loader-card{background:var(--ck-bg-white)!important;border-color:var(--ck-border-main)!important}
html[data-theme="dark"] body.rabino-checkout-active :where(input.input-text,textarea,select,.select2-selection){background:var(--ck-bg-input)!important;border-color:var(--ck-border-input)!important;color:var(--ck-text-main)!important}
html[data-theme="dark"] body.rabino-checkout-active :where(input,textarea)::placeholder{color:#7f8e85!important;opacity:1}
html[data-theme="dark"] body.rabino-checkout-active .select2-dropdown,
html[data-theme="dark"] body.rabino-checkout-active .select2-search--dropdown,
html[data-theme="dark"] body.rabino-checkout-active .select2-search--dropdown .select2-search__field{
  background:#101713!important;
  border-color:#304038!important;
  color:#edf5ef!important;
}
html[data-theme="dark"] body.rabino-checkout-active .select2-results__option{color:#dfe7e2}
html[data-theme="dark"] body.rabino-checkout-active .select2-results__option--highlighted{background:#24402e!important;color:#dff1e4!important}

/* Checkout cards/payment rows are token based, but a few local literals were
   outside the token system. */
html[data-theme="dark"] body.rabino-checkout-active :is(
  .rabino-enamad-modal__dialog,
  .rabino-enamad-modal__header,
  .rabino-enamad-modal__content
){background:#141b16!important;border-color:#2b3930!important;color:#edf5ef!important}
html[data-theme="dark"] body.rabino-checkout-active .rabino-enamad-modal__close{background:#1a231d!important;border-color:#304038!important;color:#dce6df!important}
html[data-theme="dark"] body.rabino-checkout-active .rabino-checkout-coupon-reminder__item{background:rgba(20,27,22,.82)!important;border-color:#2b3930!important}
html[data-theme="dark"] body.rabino-checkout-active :is(.rabino-checkout-coupon-reminder__remove,.woocommerce-checkout-review-order-table .cart-discount .gando-coupon-remove){background:#2d1716!important;border-color:#57302c!important;color:#ffaaa2!important}
html[data-theme="dark"] body.rabino-checkout-active :is(.rabino-checkout-coupon-reminder__remove,.woocommerce-checkout-review-order-table .cart-discount .gando-coupon-remove):hover{background:#371b19!important;color:#ffc0ba!important}

/* Thank-you outer UI follows dark mode. The printable invoice itself remains a
   white document by design and is intentionally not normalized. */
html[data-theme="dark"] body.rabino-checkout-thankyou .woocommerce-order{
  --ty-white:#141b16;
  --ty-surface:#101713;
  --ty-surface-soft:#17221a;
  --ty-border:#2a342d;
  --ty-text:#e7eee9;
  --ty-text-dark:#f1f5f2;
  --ty-muted:#9eaca3;
  background:#141b16!important;
  border-color:#2a342d!important;
  color:#e7eee9!important;
  box-shadow:0 8px 26px rgba(0,0,0,.3);
}
html[data-theme="dark"] body.rabino-checkout-thankyou :is(
  .rabino-thankyou-summary,
  .rabino-post-purchase-coupon,
  .rabino-sale-products,
  .rabino-order-facts>div,
  .rabino-thankyou-button--secondary,
  .rabino-coupon-copy,
  .rabino-carousel-controls button
){background:#141b16!important;border-color:#2a342d!important;color:#e7eee9!important}
html[data-theme="dark"] body.rabino-checkout-thankyou .rabino-sale-card{background:#172019!important;border-color:#2b3930!important;color:#edf5ef!important}
html[data-theme="dark"] body.rabino-checkout-thankyou .rabino-sale-card__image{background:#f1f0ec!important} /* product canvas */
html[data-theme="dark"] body.rabino-checkout-thankyou .rabino-thankyou-summary--failed .rabino-thankyou-status-icon{background:#2d1716!important;color:#ffaaa2!important}
html[data-theme="dark"] body.rabino-checkout-thankyou .rabino-modal__dialog{background:#141b16!important;border-color:#2b3930!important;color:#edf5ef!important}
html[data-theme="dark"] body.rabino-checkout-thankyou .rabino-modal__close{background:#1a231d!important;color:#dce6df!important}
html[data-theme="dark"] body.rabino-checkout-thankyou .rabino-modal__actions{background:#141b16!important;border-color:#2b3930!important}

/* Native focus and browser color scheme for all Core public surfaces. */
html[data-theme="dark"] :where(.gando-stock-notify,.gando-warranty-page,.gando-auth,body.rabino-checkout-active) :where(a,button,input,select,textarea):focus-visible{
  outline-color:rgba(255,163,0,.58)!important;
}
