/* Customer forms use a pine glass surface and a single, clearly visible focus ring. */
:is(#quizModal, #wholesaleModal, #checkoutModal, #cartDrawer, #b2bRequest, #accountMain, #deletionDialog) {
  --form-text: #f6f2ef;
  --form-soft: #e1dad4;
  --form-rim: #bcaa9c91;
  --form-surface: linear-gradient(125deg, rgb(83 63 57 / .66), rgb(47 26 20 / .77) 54%, rgb(65 43 37 / .62));
  --form-inset: linear-gradient(155deg, rgb(35 20 16 / .63), rgb(75 53 46 / .48));
  --form-gold: #f4d295;
}
:is(#quizModal, #wholesaleModal, #checkoutModal) .modal__panel,
#cartDrawer,
.static-page #b2bRequest, #authView .auth-panel,
#accountMain :is(#profileForm, #passwordForm, #newPetForm), #deletionDialog,
#accountMain #authView .auth-intro {
  min-width: 0;
  border: 1px solid var(--form-rim);
  border-radius: 20px;
  color: var(--form-text);
  background: radial-gradient(ellipse at 8% 0, #f1d79a20, transparent 42%), var(--form-surface);
  -webkit-backdrop-filter: blur(9px) saturate(1.12);
  backdrop-filter: blur(9px) saturate(1.12);
  box-shadow: inset 0 1px #faf3ee4d, inset 0 -1px #ebddd324;
  color-scheme: dark;
}
#cartDrawer {
  border-radius: 20px 0 0 20px;
}
body[data-page] #drawerBackdrop,
:is(#checkoutModal, #quizModal, #wholesaleModal) .modal__scrim,
#deletionDialog::backdrop {
  background: #27130d5c;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
#cartDrawer :is(.cart-row, .drawer-head, .cart-summary) { border-color: #e8dbd14d; }
#cartDrawer .eyebrow--dark { color: var(--form-gold); }
#cartDrawer :is(.cart-row__details > small, .cash-note small, .cart-empty p, .cart-summary > p) { color: var(--form-soft); }
#cartDrawer .cart-row__saving { color: #f2e3d7; }
#cartDrawer :is(.quantity-control, .cash-note, .close-button) {
  background: var(--form-inset);
  border-color: var(--form-rim);
  color: var(--form-text);
}
#cartDrawer :is(.quantity-control button, .remove-item) { color: var(--form-text); }
#cartDrawer :focus-visible { outline: 3px solid #f5d994; outline-offset: 2px; }
#accountMain :is(#pane-profile, #pane-security, #pane-pets) {
  background: rgb(52 33 27 / .52);
  border-color: var(--form-rim);
  color: var(--form-text);
}
#accountMain :is(#pane-profile, #pane-security, #pane-pets) > :is(h2, h3),
#accountMain #pane-security .account-deletion h3 { color: var(--form-text); }
#accountMain :is(#pane-profile, #pane-security, #pane-pets) :is(.muted, .empty, .deletion-status) { color: var(--form-soft); }
#accountMain :is(#pane-profile, #pane-security, #pane-pets) .eyebrow.dark { color: var(--form-gold); }
#pane-pets .pet-card { color: var(--form-text); background: rgb(65 45 38 / .62); border-color: var(--form-rim); }
#pane-pets .pet-card p { color: var(--form-soft); }
#accountMain :is(#profileForm, #passwordForm, #newPetForm) { padding: clamp(14px, 2vw, 24px); }
:is(#quizModal, #wholesaleModal, #checkoutModal) .modal__close {
  border-color: #ccbfb59e;
  background: #412b24f2;
  color: var(--form-text);
}
:is(#quizModal, #wholesaleModal, #checkoutModal) .modal__panel :is(h2, h3, legend, label),
#b2bRequest :is(h2, .wholesale-form label),
#authView .auth-panel :is(h2, label), #accountMain form :is(h3, label),
#deletionDialog h2 { color: var(--form-text); }
:is(#quizModal, #wholesaleModal, #checkoutModal) .eyebrow.eyebrow--dark,
#b2bRequest .eyebrow { color: var(--form-gold); }
:is(#quizModal, #wholesaleModal, #checkoutModal) :is(.modal-lead, .prototype-note, .checkout-address__hint, label small, .checkout-costs, .order-success > p, .request-success > p),
.static-page #b2bRequest :is(p:not(.eyebrow, .form-error), small),
#accountMain #authView .auth-panel :is(.auth-footnote, .muted, label small),
#accountMain .panel form label small, #deletionDialog p { color: var(--form-soft); }
:is(#quizForm, #checkoutForm, #wholesaleForm, #wholesalePageForm, #accountMain #authView, #profileForm, #passwordForm, #newPetForm)
:is(input:not([type="radio"], [type="checkbox"]), textarea, select) {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #b2968d;
  border-radius: 10px;
  background: var(--form-inset);
  color: var(--form-text);
  color-scheme: dark;
  box-shadow: inset 0 1px 3px #200f0a5c, 0 1px #f1e9e212;
}
:is(#quizForm, #checkoutForm, #wholesaleForm, #wholesalePageForm, #accountMain #authView, #profileForm, #passwordForm, #newPetForm)
:is(input, textarea)::placeholder { color: #d2c2bd; opacity: 1; }
:is(#quizForm, #wholesaleForm, #wholesalePageForm) select option { background: #3d2c27; color: #f6f2ef; }
:is(#quizForm, #checkoutForm, #wholesaleForm, #wholesalePageForm, #accountMain #authView, #profileForm, #passwordForm, #newPetForm)
:is(input, textarea, select):is([aria-invalid="true"], :user-invalid) { border-color: #ffa99b; }
:is(#quizModal, #checkoutModal, #wholesaleModal, #b2bRequest, #accountMain #authView, #profileForm, #passwordForm, #newPetForm, #deletionDialog)
:is(input, textarea, select, button, a):focus-visible {
  outline: 3px solid #f5d994;
  outline-offset: 2px;
}
:is(#quizModal, #checkoutModal, #wholesaleModal, #b2bRequest, #authView, #profileForm, #passwordForm, #newPetForm) button[type="submit"] {
  min-height: 44px;
  border: 1px solid #f2d195;
  border-radius: 999px;
  background: linear-gradient(155deg, #f7e3ae, #ddb878 62%, #ca9d58);
  color: #3c2e29;
  box-shadow: inset 0 1px 2px #fff5cf99, 0 4px 12px #1f100c38;
}
:is(#quizModal, #checkoutModal, #wholesaleModal, #b2bRequest, #authView, #profileForm, #passwordForm, #newPetForm) button[type="submit"]:not(:disabled):hover {
  border-color: #fff0b9;
  filter: brightness(1.05);
}
:is(#checkoutModal, #wholesaleModal, #b2bRequest) .form-error:not(:empty),
#accountMain .panel form .form-message.error:not(:empty), #deletionDialog .form-message.error:not(:empty) {
  padding: .6rem .8rem;
  border-left: 3px solid #f8a090;
  border-radius: 4px;
  background: #4b2c28;
  color: #ffded5;
}
#accountMain form .form-message:not(.error):not(:empty) { color: #eeded1; }
#quizModal .quiz-result-item { border-color: #b09c8c; color: #f6f3e6; background: #4d3831; }
#quizModal .quiz-result-item small { color: #e1dad4; }
#checkoutModal :is(.checkout-address, .cash-note, .delivery-estimate, .delivery-options label) {
  background: rgb(51 32 26 / .56);
  border-color: #a8917f94;
  color: var(--form-text);
}
#checkoutModal .delivery-options label:has(input:checked) { background: rgb(107 88 73 / .78); border-color: #e2d2c5; }
#checkoutModal input[type="radio"] { accent-color: #d6beab; }
#checkoutModal :is(.checkout-items b, .cash-note b, .checkout-costs b) { color: var(--form-text); }
#checkoutModal .checkout-total { color: var(--form-text); }
#checkoutModal :is(.checkout-items li, .cash-note small, .delivery-options small, .order-success p) { color: var(--form-soft); }
#checkoutModal .checkout-item__saving { color: #ebd7c8; }
#checkoutModal :is(.checkout-items, .checkout-total) { border-color: #c4b5a94a; }
#checkoutModal .button--plain, #accountMain #newPetForm .cancel-edit { color: #e4d29d; }
#authView .auth-tabs { border-bottom-color: #b7a4965e; }
#authView .auth-panel .auth-tabs button { color: #ded5cf; }
#authView .auth-panel .auth-tabs [aria-selected="true"] { color: #ffdfa4; border-bottom-color: #e9bd70; }
#accountMain #authView .auth-intro {
  position: relative;
  border-color: var(--form-rim);
  color: var(--form-text);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :is(#quizModal, #wholesaleModal, #checkoutModal, #cartDrawer, #b2bRequest, #accountMain, #deletionDialog) {
    --form-surface: linear-gradient(125deg, #483631ef, #38241eeb 60%, #463530e6);
  }
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  :is(#quizModal, #wholesaleModal, #checkoutModal, #cartDrawer, #b2bRequest, #accountMain, #deletionDialog) {
    --form-surface: linear-gradient(130deg, #473530, #37241e);
    --form-inset: linear-gradient(155deg, #31211d, #44312b);
  }
  #accountMain :is(#pane-profile, #pane-security, #pane-pets) { background: #43312c; }
}
#authView .auth-intro::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 29% 0 0;
  z-index: -1;
  background: url('home-scenes/hero-golden.jpg') 74% 45% / cover no-repeat;
  mask-image: linear-gradient(transparent, #000 44%);
}
#accountMain #authView .intro-points span { background: #422e28d9; color: var(--form-text); border-color: var(--form-rim); }
@media (max-width: 720px) {
  #accountMain #authView .auth-intro {
    min-height: 210px;
    padding: 24px 20px;
  }
  #authView .auth-intro::before {
    inset: 0;
    background-position: 77% 40%;
    mask-image: linear-gradient(90deg, transparent 7%, #0003 45%, #000 84%);
  }
  #accountMain #authView .auth-intro > :is(h1, p) { max-width: 70%; }
  #accountMain #authView .intro-points { max-width: 74%; }
  :is(#quizForm, #checkoutForm, #wholesaleForm, #wholesalePageForm, #accountMain #authView, #profileForm, #passwordForm, #newPetForm)
  :is(input:not([type="radio"], [type="checkbox"]), textarea, select) { font-size: 16px; }
}
