/*
 * Veya white-surface policy.
 * Structural content canvases and UI panels are pure white. The storefront
 * header is white with black controls, while the footer and primary actions
 * use true black. Accessibility scrims and overlays remain intentional.
 */

:root {
  --v-action: #000 !important;
  --v-text-strong: #000 !important;
  --v-text-body: #303234 !important;
  --v-text-secondary: #5f6365 !important;
  --v-text-muted: #707274 !important;
  --v-text-disabled: #8f9294 !important;
  --v-text-on-dark: #fff !important;
  --v-text-on-dark-secondary: rgb(255 255 255 / 74%) !important;
  --v-text-error: #8b3e38 !important;
  --v-text-success: #315b45 !important;
  --v-ink-strong: var(--v-text-strong) !important;
  --v-ink: var(--v-text-body) !important;
  --v-muted: var(--v-text-muted) !important;
  --veya-ink-strong: var(--v-text-strong) !important;
  --veya-ink: var(--v-text-body) !important;
  --v-canvas: #fff !important;
  --v-ivory: #fff !important;
  --v-warm: #fff !important;
  --v-stone: #fff !important;
  --v-silver-soft: #fff !important;
  --v-silver-mist: #fff !important;
  --v-silver-pale: #fff !important;

  --veya-surface: #fff !important;
  --veya-surface-warm: #fff !important;
  --veya-surface-stone: #fff !important;
  --veya-page-bg: #fff !important;

  --vsh-surface: #fff !important;
  --vsh-surface-soft: #fff !important;
  --vsh-warm: #fff !important;
  --vhome-paper: #fff !important;
  --vhome-stone: #fff !important;
  --vhome-warm: #fff !important;
  --vs-canvas: #fff !important;
  --vs-surface: #fff !important;
  --vs-surface-warm: #fff !important;
  --vs-surface-soft: #fff !important;
  --vc-bg: #fff !important;
  --vc-surface: #fff !important;
  --vc-surface-warm: #fff !important;
  --vc-surface-soft: #fff !important;
  --b2b-bg: #fff !important;
  --b2b-panel: #fff !important;
  --b2b-panel-warm: #fff !important;
  --gloss-page: #fff !important;
  --gloss-panel: #fff !important;
  --gloss-panel-light: #fff !important;
  --vgl-paper: #fff !important;
  --vlg-surface: #fff !important;
  --vlg-panel: #fff !important;
  --vps-surface: #fff !important;
  --vsv-surface: #fff !important;
  --veya-commerce-bg: #fff !important;
  --veya-commerce-panel: #fff !important;

  --vsh-strong: var(--v-text-strong) !important;
  --vsh-ink: var(--v-text-body) !important;
  --vhome-ink: var(--v-text-strong) !important;
  --vs-ink-strong: var(--v-text-strong) !important;
  --vs-ink: var(--v-text-body) !important;
  --vs-muted: var(--v-text-secondary) !important;
  --vc-strong: var(--v-text-strong) !important;
  --vc-ink: var(--v-text-body) !important;
  --vc-muted: var(--v-text-secondary) !important;
  --b2b-strong: var(--v-text-strong) !important;
  --b2b-ink: var(--v-text-body) !important;
  --auth-strong: var(--v-text-strong) !important;
  --auth-ink: var(--v-text-body) !important;
  --gloss-ink: var(--v-text-strong) !important;
  --gloss-ink-soft: var(--v-text-body) !important;
  --vgl-ink: var(--v-text-strong) !important;
  --vgl-muted: var(--v-text-secondary) !important;
  --vlg-ink-strong: var(--v-text-strong) !important;
  --vlg-ink: var(--v-text-body) !important;
  --vps-ink-strong: var(--v-text-strong) !important;
  --vps-ink: var(--v-text-body) !important;
  --vsv-ink: var(--v-text-strong) !important;
  --vsv-copy: var(--v-text-secondary) !important;
  --vpc-ink-strong: var(--v-text-strong) !important;
  --vpc-ink: var(--v-text-body) !important;
  --vpc-mobile-ink: var(--v-text-strong) !important;
  --vpc-mobile-muted: var(--v-text-secondary) !important;
  --vpd-ink: var(--v-text-strong) !important;
  --vpd-muted: var(--v-text-secondary) !important;
  --vmc-ink: var(--v-text-strong) !important;
  --vmc-muted: var(--v-text-secondary) !important;
  --veya-commerce-strong: var(--v-text-strong) !important;
  --veya-commerce-ink: var(--v-text-body) !important;
}

html,
body,
#container,
#veya-main,
.veya-home,
.vhome,
.veya-system-page,
.veya-auth,
.veya-checkout,
.veya-pdp,
.veya-gloss-pdp,
.vgl-category,
.veya-about,
.b2b-page,
.veya-error {
  background: #fff !important;
}

/* Semantic text hierarchy shared by OpenCart and bespoke Veya modules. */
body,
#container,
#veya-main,
.veya-system-page,
.veya-auth,
.veya-checkout,
.veya-pdp,
.veya-gloss-pdp,
.vgl-category,
.b2b-page,
.veya-error {
  color: var(--v-text-body) !important;
}

.veya-auth-modal,
.veya-auth-modal__loading,
.veya-auth-modal__fallback,
.veya-auth__method-row,
.veya-auth__lead,
.veya-checkout__trust,
.b2b-lead,
.veya-error__lead,
.veya-contact-page,
.veya-contact-order p,
.vpd-commerce-accordions details > p,
.vpd-commerce-accordions details > .vpd-richtext,
.vpd-faq details > p,
.vpd-tips article > p {
  color: var(--v-text-body) !important;
}

.veya-auth__divider,
.veya-auth__method-row span:last-child,
.veya-contact-page .breadcrumb,
.veya-contact-page .breadcrumb a,
.veya-contact-page .veya-page-kicker,
.veya-contact-method small,
.veya-contact-details dt,
.vpd-claims,
.vpd-more__card small {
  color: var(--v-text-secondary) !important;
}

:where(.veya-auth, .veya-checkout, .veya-system-page, .b2b-page, .veya-contact-page)
  :where(label, legend),
.veya-contact-page :where(h1, h2, h3),
.veya-contact-method,
.veya-contact-details dd,
.veya-contact-details a {
  color: var(--v-text-strong) !important;
}

.veya-auth-modal__fallback a,
.veya-auth__methods .veya-auth__button--guest,
.veya-auth__button--secondary,
.veya-auth__button--outline {
  color: var(--v-text-strong) !important;
}

:where(#veya-main, .veya-auth-modal, .veya-cart-drawer, .veya-drawer)
  :where(.text-muted, .form-text, .help-block, .breadcrumb, .breadcrumb a) {
  color: var(--v-text-secondary) !important;
}

:where(#veya-main, .veya-auth-modal, .veya-cart-drawer, .veya-drawer)
  :where(input, select, textarea)::placeholder {
  color: var(--v-text-muted) !important;
  opacity: 1;
}

:where(#veya-main, .veya-auth-modal, .veya-cart-drawer, .veya-drawer)
  :where(input, select, textarea, button):disabled,
:where(#veya-main, .veya-auth-modal, .veya-cart-drawer, .veya-drawer)
  [aria-disabled="true"] {
  color: var(--v-text-disabled) !important;
}

:where(#veya-main, .veya-auth-modal, .veya-cart-drawer)
  :where(.text-danger, .invalid-feedback, .veya-auth__field-error, .veya-gloss-field__error, .veya-checkout__inline-error, .veya-cart-page__notice.is-error) {
  color: var(--v-text-error) !important;
}

:where(#veya-main, .veya-auth-modal, .veya-cart-drawer)
  :where(.text-success, .veya-gloss-form-status.is-success) {
  color: var(--v-text-success) !important;
}

/* White storefront header with true-black navigation and controls. */
.veya-shell-header,
.veya-header,
.veya-header.is-scrolled,
body:not(:has(.veya-home)) .veya-header,
body.veya-checkout-page:not(:has(.veya-home)) .veya-header {
  color: #000 !important;
  background: #fff !important;
  border-bottom: 1px solid var(--v-line, #d2ceca) !important;
}

.veya-header.is-scrolled {
  background: rgb(255 255 255 / 96%) !important;
  box-shadow: var(--v-shadow-float, 0 12px 32px rgb(30 31 31 / 12%)) !important;
  backdrop-filter: blur(10px) !important;
}

.veya-shell-wordmark,
.veya-wordmark {
  background-image: url("/image/catalog/veya/brand/veya-wordmark-black-v1.svg") !important;
}

.veya-shell-header a:hover,
.veya-shell-header button:hover,
.veya-header a:hover,
.veya-header button:hover,
.veya-header .veya-header-icon:hover,
.veya-header .veya-header-icon:focus-visible {
  color: #000 !important;
}

.veya-shell-header a:hover,
.veya-shell-header button:hover,
.veya-header a:hover,
.veya-header button:hover {
  opacity: .76;
}

.veya-header .veya-header-icon:hover,
.veya-header .veya-header-icon:focus-visible {
  background-color: rgb(0 0 0 / 6%) !important;
  opacity: 1;
}

.veya-header .veya-header-icon:focus-visible,
.veya-language-switch__option.dropdown-item:focus-visible {
  outline-color: #000 !important;
}

.veya-language-switch {
  border-color: var(--v-line, #d2ceca) !important;
}

.veya-language-switch__option.dropdown-item {
  color: var(--v-muted, #707274) !important;
}

.veya-language-switch__option.dropdown-item:hover {
  color: #000 !important;
  background: rgb(0 0 0 / 6%) !important;
}

.veya-language-switch__option.is-active {
  color: #fff !important;
  background: #000 !important;
}

.veya-header-icon__badge,
.veya-mobile-cart .veya-header-icon__badge {
  color: #fff !important;
  background: #000 !important;
  border-color: #fff !important;
}

.veya-shell-mega,
.veya-shell-menu__panel,
.veya-shell-cart__panel,
.veya-drawer__panel,
.veya-cart-drawer__panel,
.veya-shell-cart-summary {
  background: #fff !important;
}

/* Authentication: no cream or grey panels at any state or viewport. */
.veya-auth {
  --auth-bg: #fff !important;
  --auth-panel: #fff !important;
  --auth-object: #fff !important;
}

.veya-auth__shell,
.veya-auth__panel,
.veya-auth__editorial,
.veya-auth__shell--embedded,
.veya-auth-modal,
.veya-auth-modal__panel,
.veya-auth-modal__close,
.veya-auth-modal__loading,
.veya-auth-modal__fallback,
.veya-auth__method-row,
.veya-auth__provider-note,
.veya-auth__status,
.veya-auth__alert,
.veya-auth__cart-note,
.veya-auth input:not([type="checkbox"]),
.veya-auth input:disabled {
  background: #fff !important;
}

.veya-auth__shell,
.veya-auth__method-row,
.veya-auth__provider-note,
.veya-auth__status,
.veya-auth__alert,
.veya-auth__cart-note {
  border: 1px solid var(--auth-line, #d2ceca);
}

.veya-auth-modal__close:hover,
.veya-auth__methods .veya-auth__button--guest:hover,
.veya-auth__button--secondary:hover,
.veya-auth__button--outline:hover {
  background: #fff !important;
  border-color: var(--auth-strong, #2e3031) !important;
}

/* Customer-facing form actions: monochrome without flattening neutral states. */
.veya-auth { --auth-strong: #000 !important; }
.veya-checkout { --vc-strong: #000 !important; --vc-focus: #000 !important; }
.b2b-page { --b2b-strong: #000 !important; }
.veya-system-page { --vs-ink-strong: #000 !important; --vs-focus: #000 !important; }

:where(
  #veya-main,
  .veya-auth-modal,
  .veya-cart-drawer,
  .veya-drawer
) :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  caret-color: #000;
}

:where(
  #veya-main,
  .veya-auth-modal,
  .veya-cart-drawer,
  .veya-drawer
) :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
  border-color: #000 !important;
  box-shadow: 0 0 0 1px #000 !important;
}

:where(
  #veya-main,
  .veya-auth-modal,
  .veya-cart-drawer,
  .veya-drawer
) :where(
  .btn-primary,
  .veya-button--primary,
  .veya-auth__button--primary,
  .veya-checkout-button--primary,
  .veya-buy-button,
  .veya-mobile-buy,
  .veya-gloss-buy-button,
  .vpd-add,
  .veya-cart-checkout,
  .veya-cart-page__checkout,
  .veya-shell-cart-cta,
  .b2b-button,
  .vgl-category-card__cta,
  .veya-product-card__buy,
  .veya-error__button--filled,
  button[type="submit"]
):not(:disabled):not([aria-disabled="true"]) {
  color: #fff !important;
  background: #000 !important;
  border-color: #000 !important;
}

:where(
  #veya-main,
  .veya-auth-modal,
  .veya-cart-drawer,
  .veya-drawer
) :where(
  .btn-primary,
  .veya-button--primary,
  .veya-auth__button--primary,
  .veya-checkout-button--primary,
  .veya-buy-button,
  .veya-mobile-buy,
  .veya-gloss-buy-button,
  .vpd-add,
  .veya-cart-checkout,
  .veya-cart-page__checkout,
  .veya-shell-cart-cta,
  .b2b-button,
  .vgl-category-card__cta,
  .veya-product-card__buy,
  .veya-error__button--filled,
  button[type="submit"]
):not(:disabled):not([aria-disabled="true"]):hover {
  color: #fff !important;
  background: #171717 !important;
  border-color: #171717 !important;
}

.veya-np__modes input:checked + span,
.veya-np__selected > span,
.veya-cart-drawer__header,
.veya-contact-hero {
  color: #fff !important;
  background: #000 !important;
}

/* Shared commerce and service surfaces. */
.veya-system-page :is(.card, .list-group, .table-responsive, [class*="panel"], [class*="card"]),
.veya-auth-card,
.veya-auth-card--warm,
.veya-cart-line,
.veya-cart-summary-panel,
.veya-service-card,
.veya-service-card--warm,
.veya-legal-copy,
.veya-checkout-state,
.veya-checkout-state--success,
.veya-checkout-step,
.veya-checkout-summary,
.veya-checkout-summary-toggle,
.veya-checkout-country-note,
.veya-checkout-option__surface,
.veya-checkout-option input:checked + .veya-checkout-option__surface,
.veya-checkout-field input,
.veya-checkout-field input:disabled,
.veya-checkout-option.is-disabled .veya-checkout-option__surface,
.veya-checkout__inline-error,
.b2b-hero__copy,
.b2b-hero__visual,
.b2b-card,
.b2b-product,
.b2b-info-grid,
.b2b-after-grid,
.b2b-cta,
.b2b-form-intro,
.b2b-result,
.veya-error__copy,
.veya-error__visual {
  background: #fff !important;
  border-color: var(--v-line, #d2ceca) !important;
}

.veya-system-page :is(.card, [class*="panel"], [class*="card"]),
.veya-cart-line,
.veya-cart-summary-panel,
.veya-service-card,
.veya-legal-copy,
.veya-checkout-state,
.veya-checkout-step,
.veya-checkout-summary,
.b2b-card,
.b2b-product,
.b2b-cta,
.b2b-form-intro,
.b2b-result,
.veya-error__copy,
.veya-error__visual {
  border: 1px solid var(--v-line, #d2ceca);
}

/* Editorial copy and product canvases remain distinct through borders. */
.vhome > :not(.vhome-hero):not(.vhome-cinematic):not(.vhome-video),
.vhome-proof__copy,
.vhome-about__copy,
.vhome-edit figcaption,
.veya-pdp-story__copy,
.veya-pdp-brush__copy,
.veya-pdp-result > div,
.veya-ritual,
.veya-pdp-related,
.veya-gloss-purchase,
.veya-gloss-story__copy,
.veya-gloss-prelaunch,
.veya-gloss-wholesale,
.veya-gloss-family__card,
.vgl-category__hero,
.vgl-category-card,
.vgl-category-card__copy,
.vgl-category__facts {
  background: #fff !important;
}

.vhome-feature-card__visual,
.vhome-gloss-card__media,
.vhome-gloss-stage__item,
.veya-product-card__visual,
.veya-gallery__stage,
.veya-pdp-brush__visual,
.veya-ritual__object,
.veya-gloss-gallery,
.veya-gloss-story figure,
.veya-gloss-shade__media,
.veya-gloss-family__media,
.vgl-category-card__media {
  background: #fff !important;
  border: 1px solid var(--v-line, #d2ceca);
}

/* Scroll-driven code may set these properties inline; keep the canvas white. */
.veya-immersion__stage {
  --mascara-stage-bg: #fff !important;
  background: #fff !important;
}

/* True-black footer closes the white editorial canvas. */
.veya-footer {
  color: #fff !important;
  background: #000 !important;
  border-top: 1px solid rgb(255 255 255 / 34%) !important;
}

.veya-footer__wordmark {
  background-image: url("/image/catalog/veya/brand/veya-wordmark-white-v1.svg") !important;
}

.veya-footer__grid,
.veya-newsletter,
.veya-footer__bottom,
.veya-footer__links > div {
  border-color: rgb(255 255 255 / 34%) !important;
}

.veya-newsletter h3,
.veya-newsletter__link,
.veya-footer a {
  color: #fff !important;
}

.veya-newsletter__link {
  border-color: #fff !important;
}

.veya-newsletter > p,
.veya-footer__links p {
  color: var(--v-text-on-dark-secondary, rgb(255 255 255 / 74%)) !important;
}

.veya-newsletter__link:hover {
  color: #000 !important;
  background: #fff !important;
}

.veya-footer__bottom,
.veya-footer__bottom a,
.veya-footer__legal,
.veya-footer__legal a {
  color: var(--v-text-on-dark-secondary, rgb(255 255 255 / 74%)) !important;
}

.veya-footer a:focus-visible,
.veya-footer button:focus-visible,
.veya-footer input:focus-visible {
  outline-color: #fff !important;
}

/* Preserve intentional functional scrims over imagery and modal context. */
.veya-auth-modal::backdrop,
.veya-shell-overlay__backdrop,
.veya-cart-drawer__backdrop,
.vhome-hero__shade,
.veya-gloss-story figure::after {
  /* Deliberately excluded from the white-surface rule. */
}

@media (prefers-reduced-motion: reduce) {
  .veya-immersion__stage {
    transition: none !important;
  }
}
