/* AV is deliberately absent from these overrides: its original cascade wins. */
html[data-av-theme="av-pro"] {
  color-scheme: dark;
  --avs-control-color-scheme: dark;
  --contact-btn-primary-hover-bg: var(--theme-accent-hover);
  --theme-footer-hover: var(--theme-raised);
  --theme-page: #10141c; --theme-surface: #1c232d; --theme-raised: #2c343d;
  --theme-text: #f5f7fa; --theme-muted: #b9c3d0; --theme-accent: #b6ff36;
  --theme-accent-hover: #ceff80; --theme-on-accent: #152006; --theme-border: #718397;
  --theme-tint: #28391d; --theme-success: #8be0b5; --theme-success-bg: #18382b;
  --theme-warning: #ffda85; --theme-warning-bg: #3b301b; --theme-error: #ffb8af;
  --theme-error-bg: #422521; --theme-inverse: #0a0e14; --theme-on-inverse: #f5f7fa;
  --theme-media: #222b36; --theme-shadow: 0 8px 24px #0004;
}
html[data-av-theme="av-heritage"] {
  --contact-btn-primary-hover-bg: var(--theme-accent-hover);
  color-scheme: light;
  --theme-footer-hover: var(--theme-accent);
  --theme-page: #f6f2e9; --theme-surface: #ffffff; --theme-raised: #eee5d6;
  --theme-text: #24221f; --theme-muted: #625b52; --theme-accent: #75562e;
  --theme-accent-hover: #593f20; --theme-on-accent: #ffffff; --theme-border: #8a7b66;
  --theme-tint: #f0e6d6; --theme-success: #226340; --theme-success-bg: #eaf3ea;
  --theme-warning: #704c15; --theme-warning-bg: #fbefce; --theme-error: #a32b22;
  --theme-error-bg: #fcece9; --theme-inverse: #29251f; --theme-on-inverse: #fffaf0;
  --theme-media: #eee8dc; --theme-shadow: 0 8px 24px #42351c12;
}
html[data-av-theme]:not([data-av-theme="av"]) {
  /* Document and tracking components opt into semantic colors in the alternative themes.
     Legacy fallbacks in their source rules preserve the original AV palette. */
  --reading-page: var(--theme-page);
  --reading-surface: var(--theme-surface);
  --reading-raised: var(--theme-raised);
  --reading-text: var(--theme-text);
  --reading-heading: var(--theme-text);
  --reading-muted: var(--theme-muted);
  --reading-link: var(--theme-accent);
  --reading-hover-bg: var(--theme-raised);
  --reading-border: var(--theme-border);
  --reading-success: var(--theme-success);
  --reading-success-bg: var(--theme-success-bg);
  --reading-warning: var(--theme-warning);
  --reading-warning-bg: var(--theme-warning-bg);
  --reading-error: var(--theme-error);
  --reading-error-bg: var(--theme-error-bg);
  --reading-info: var(--theme-accent);
  --reading-info-bg: var(--theme-tint);
  --avs-on-accent: var(--theme-on-accent);
  --avs-menu-selected-bg: var(--theme-tint);
  --avs-utility-bg: var(--theme-inverse);
  --avs-utility-text: var(--theme-on-inverse);
  --avs-utility-hover-bg: var(--theme-raised);
  --avs-hero-primary-bg: var(--theme-accent);
  --avs-hero-primary-text: var(--theme-on-accent);
  --avs-hero-primary-hover: var(--theme-accent-hover);
  --avs-footer-text: var(--theme-on-inverse);
  --avs-footer-hover-bg: var(--theme-footer-hover);
  --avs-blue: var(--theme-accent); --avs-blue-dark: var(--theme-accent); --avs-blue-light: var(--theme-accent-hover);
  --avs-blue-deep: var(--theme-inverse); --avs-ink: var(--theme-text); --avs-ink-soft: var(--theme-text);
  --avs-text-muted: var(--theme-muted); --avs-cream: var(--theme-page); --avs-accent: var(--theme-accent);
  --avs-border: var(--theme-border); --avs-border-strong: var(--theme-border); --avs-silver: var(--theme-raised);
  --avs-surface: var(--theme-surface); --avs-surface-alt: var(--theme-raised); --avs-sale: var(--theme-warning);
  --avs-success: var(--theme-success); --avs-warning: var(--theme-warning); --avs-error: var(--theme-error);
  --gradient-premium: linear-gradient(125deg, var(--theme-accent), var(--theme-accent-hover));
  --gradient-subtle: linear-gradient(180deg, var(--theme-surface), var(--theme-page));
  --shadow-blue: var(--theme-shadow); --shadow-premium: var(--theme-shadow);
  --shadow-sm: var(--theme-shadow); --shadow-md: var(--theme-shadow); --shadow-lg: var(--theme-shadow);
  --toast-info-bg: var(--theme-surface); --toast-info-border: var(--theme-border); --toast-info-text: var(--theme-text);
  --toast-success-bg: var(--theme-success-bg); --toast-success-border: var(--theme-success); --toast-success-text: var(--theme-success);
  --toast-warning-bg: var(--theme-warning-bg); --toast-warning-border: var(--theme-warning); --toast-warning-text: var(--theme-warning);
  --toast-error-bg: var(--theme-error-bg); --toast-error-border: var(--theme-error); --toast-error-text: var(--theme-error);
}
html[data-av-theme]:not([data-av-theme="av"]) body { background: var(--theme-page) !important; color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) .home-page { --av-card-text-color: var(--theme-muted); --av-card-media-background: var(--theme-media); }
/* One semantic surface layer shared by both alternatives. No dimensions or media filters. */
html[data-av-theme]:not([data-av-theme="av"]) :where(.site-header,.seo-header,.site-nav-drawer,.site-nav-footer,.cart-drawer,.checkout-modal-inner,.checkout-header,.checkout-section,.checkout-side-card,.product-detail-inner,.product-detail-toolbar,.login-modal-content,.account-modal-content,.account-chip,.account-address-card,.review-modal-dialog,.order-success-inner,.order-success-header,.payment-progress-inner,.favorites-drawer,.product-card,.finder-product-card,.google-review-card,.review-card,.review-score-card,.review-rating-bars,.trust-summary-top,.shop-taxonomy-filters,.shop-by-category-panel,.compare-panel,.compare-table,.compare-tray,.track-card,.team-card,.team-directory,.contact-card,.contact-panel,.story-feature-item,.story-values-card,.team-showcase,.bulk-card,.policy-card,.seo-card,.chatbot-panel,.chatbot-messages):not(:where(.shop-page-container .listing-product-card)) {
  background: var(--theme-surface) !important; color: var(--theme-text) !important; border-color: var(--theme-border) !important;
}
html[data-av-theme]:not([data-av-theme="av"]) :where(.shop-header-row,.shop-toolbar,.finder-results,.finder-results-header,.smart-finder,.smart-finder-header,.account-form,.cart-items,.cart-summary,.checkout-coupon,.checkout-save-address-row,.shipping-result,.checkout-international-note,.order-reference-card,.favorites-confirm,.product-detail-option,.product-detail-description,.story-hero-visual,.home-browse-card,.home-category-card,.home-collection-card,.shop-discovery-active-chip,.av-difference,.av-difference-panel,.story-av-message,.story-premium,.home-kit-upsell,.home-popular,.checkout-offer-card,.chatbot-welcome,.chatbot-bot-message) {
  background: var(--theme-raised) !important; color: var(--theme-text) !important; border-color: var(--theme-border) !important;
}
html[data-av-theme]:not([data-av-theme="av"]) :where(h1,h2,h3,h4,h5,h6,.brand-name,.brand-text,.site-nav-brand h2,.favorite-info h3 button,.favorite-price,.product-name,.product-title,.product-price,.product-price-current,.product-detail-title,.product-detail-price,.compare-name,.checkout-title,.checkout-section h3,.checkout-summary-title,.checkout-offer-title,.order-reference-code,.finder-product-name,.team-name,.team-card-name,.story-feature-item strong,.shop-toolbar-title):not(:where(#avChatbotRoot *,.home-carousel *,.partner-admin .admin-sidebar *,.recent-sale-popup *,.av-toast *)) { color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(p,.muted,.section-copy,.section-subtitle,.product-description,.product-meta-description,.product-mrp,.product-detail-description,.favorite-item-unavailable p,.favorites-empty p,.favorites-loading,.checkout-offer-code,.checkout-offer-conditions li,.checkout-offer-details,.checkout-offer-expiry,.account-copy,.account-welcome,.account-profile-hint,.account-empty,.site-nav-brand p,.story-feature-item span,.team-member-description,.team-card-description,.review-date,.google-review-date,.finder-product-meta,.story-intro-copy p):not(:where(.legal-page *,.track-page *)):not(:where(#avChatbotRoot *,.home-carousel *,.partner-admin .admin-sidebar *,.recent-sale-popup *,.av-toast *,.checkout-coupon-status)) { color: var(--theme-muted) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(a:not(:where(.partner-primary,.partner-admin .admin-nav a,.site-nav-drawer a,.site-footer a,.support-dropdown-menu a,.legal-page a,.track-page a,.listing-product-card .add-to-cart-btn,.shop-page-container .shop-discovery-category-tile,.social-contact-button,.shop-help-link)),.eyebrow,.section-eyebrow,.favorite-actions .btn-secondary,.favorites-remove,.favorites-notice button,.home-review-more,.product-card-compare,.wishlist-toggle,.product-card-wishlist,.product-detail-link,.compare-link,.checkout-link,.login-form-resend a,.order-reference-copy,.story-title-accent):not(:where(#avChatbotRoot *,.home-carousel *)) { color: var(--theme-accent) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(button,input,select,textarea) { accent-color: var(--theme-accent); }
html[data-av-theme]:not([data-av-theme="av"]) :where(input:not([type="radio"]):not([type="checkbox"]),select:not(.language-select),textarea):not(:where(#avChatbotRoot *,.home-carousel *)) { background: var(--theme-surface) !important; border-color: var(--theme-border) !important; color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(input,textarea):not(:where(#avChatbotRoot *,.home-carousel *))::placeholder { color: var(--theme-muted) !important; opacity: 1; }
html[data-av-theme]:not([data-av-theme="av"]) :where(input,select,textarea):disabled:not(:where(#avChatbotRoot *,.home-carousel *)) { color: var(--theme-muted) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(label,.form-label,.checkbox-label,.login-form-terms span,.checkout-fulfilment-copy,.checkout-field-label,.cart-item-name,.checkout-item-name,.checkout-summary-row,.compare-table th,.compare-table td) { color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.btn-primary,.login-form-submit,.header-finder-cta,.finder-chip,.finder-wizard-next,.finder-view-btn,.checkout-pay-btn,.checkout-submit,.chatbot-send,.product-detail-add-btn,.product-detail-buy-btn):not(:where(.home-carousel *,.shop-page-container .finder-chip,.social-contact-button,.bulk-page .btn-primary)) { background: var(--gradient-premium) !important; border-color: var(--theme-accent) !important; color: var(--theme-on-accent) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.btn-primary,.login-form-submit,.header-finder-cta,.finder-chip,.finder-wizard-next,.finder-view-btn,.checkout-pay-btn) :where(span,strong,small):not(:where(.home-carousel *)) { color: inherit !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.btn-secondary,.view-details-btn,.add-to-cart-btn:not(:where(.listing-product-card *)),.favorites-toggle,.cart-toggle,.header-search-toggle,.site-nav-close,.favorites-close,.favorites-remove-icon,.cart-close,.checkout-close,.product-detail-close,.account-modal-close,.login-modal-close,.review-modal-close,.quick-filter,.compare-remove,.compare-clear,.quantity-btn,.qty-btn,.home-browse-all,.home-browse-arrow,.card-carousel-arrow,.featured-gallery-next,.product-detail-option-button,.product-option-btn,.product-size-btn,.chatbot-quick-reply):not(:where(.home-carousel *,.social-contact-button)) { background: var(--theme-surface) !important; border-color: var(--theme-border) !important; color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.btn-secondary,.view-details-btn,.add-to-cart-btn:not(:where(.listing-product-card *)),.quick-filter):hover:not(:where(.home-carousel *,.social-contact-button)) { background: var(--theme-raised) !important; color: var(--theme-accent) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.quick-filter.active,.quick-filter.is-active,.product-card-wishlist.active,.wishlist-toggle.active,.product-card-compare.active,.product-size-btn.selected,.product-option-btn.selected,.product-detail-option-button.is-selected,[aria-pressed="true"]):not(:where(#avChatbotRoot *,.home-carousel *)) { background: var(--theme-tint) !important; border-color: var(--theme-accent) !important; color: var(--theme-accent) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.product-meta,.product-badge,.discount-badge,.finder-product-badge,.finder-product-discount,.finder-match-percent,.featured-offer,.shop-offer-chip,.home-kit-offer,.checkout-section-number,.checkout-summary-count,.checkout-header-kicker,.account-order-status,.trust-source-badge,.site-nav-parent-badge,.favorites-count,.cart-count) { background: var(--theme-tint) !important; color: var(--theme-accent) !important; border-color: var(--theme-border) !important; }
/* ID-scoped compact-card rules have higher specificity in the original CSS. */
html[data-av-theme]:not([data-av-theme="av"]) #featured :where(.product-badge,.discount-badge,.featured-offer,.featured-offer small,.featured-offer strong) { background: var(--theme-tint) !important; color: var(--theme-accent) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.favorite-stock,.order-payment-badge,.checkout-offer-savings,.checkout-offer-qualified,.login-form-success,.account-email-status.is-verified) { color: var(--theme-success) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.favorites-notice,.checkout-offer-bottom,.order-payment-badge,.login-form-success,.account-email-status.is-verified) { background: var(--theme-success-bg) !important; border-color: var(--theme-success) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.favorites-notice [data-favorites-message],.checkout-offer-bottom p) { color: var(--theme-success) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.favorite-stock.unavailable,.checkout-minimum-order-notice,.cart-minimum-order-notice,.account-email-status.is-unverified) { background: var(--theme-warning-bg) !important; color: var(--theme-warning) !important; border-color: var(--theme-warning) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.checkout-form-status,.login-form-error,.form-error,.field-error,.error-message,.review-form-error) { background: var(--theme-error-bg) !important; color: var(--theme-error) !important; border-color: var(--theme-error) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.product-image-wrap,.product-detail-main-image,.product-detail-gallery,.favorite-image,.finder-product-media,.cart-item-image,.compare-product-image,.seo-product-image,.home-collection-media,.home-category-media) { background: var(--theme-media) !important; border-color: var(--theme-border) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.favorite-item,.favorites-heading,.favorites-confirm,.site-nav-drawer-header,.checkout-header,.checkout-section,.product-detail-toolbar,.cart-header,.cart-footer,.compare-table td,.compare-table th,.site-nav-footer-links,.seo-specs>div,.seo-footer,.review-list,.story-feature-item) { border-color: var(--theme-border) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.site-footer,.header-utility,.announcement-marquee,.story-hero-visual-meta,.site-nav-signoff) { background: var(--theme-inverse) !important; color: var(--theme-on-inverse) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.header-utility,.announcement-marquee,.story-hero-visual-meta,.site-nav-signoff) :where(a,p,span,strong,h2,h3,small):not(:where(.support-dropdown-menu *)) { color: var(--theme-on-inverse) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.product-gallery-hint) :where(h1,h2,h3,p,span,strong):not(:where(#avChatbotRoot *,.home-carousel *,.partner-admin .admin-sidebar *)) { color: #f5f7fa !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.site-nav-overlay,.cart-overlay,.checkout-overlay,.account-modal-overlay,.login-modal-overlay,.review-modal-overlay,.order-success-overlay) { background: #050a12b8 !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(button,a,input,select,textarea,summary,[tabindex]):not(:where(.site-nav-drawer *,.site-footer a,.support-dropdown-menu a)):focus-visible:not(:where(#avChatbotRoot *,.home-carousel *)) { outline: 3px solid var(--theme-accent) !important; outline-offset: 3px; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.product-gallery-dot,.carousel-dot) { background: var(--theme-muted) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.product-gallery-dot,.carousel-dot).active { background: var(--theme-accent) !important; }
/* New controls live inside the existing navigation, preserving the closed AV header. */
.av-theme-selector { border: 1px solid var(--avs-border,#dfeaf3); border-radius: 12px; margin: 12px 0; min-width: 0; padding: 8px; }
.av-theme-selector legend { color: var(--avs-text-muted,#586879); font-size: 12px; font-weight: 700; padding-inline: 5px; }
.av-theme-selector label { align-items: center; border: 1px solid transparent; border-radius: 8px; cursor: pointer; display: flex; font-size: 12px; gap: 8px; min-height: 44px; padding: 4px 8px; }
.av-theme-selector label:has(input:checked) { background: var(--avs-surface-alt,#f4f9fd); border-color: var(--avs-border-strong,#c8d9e8); }
.av-theme-selector input { accent-color: var(--avs-blue-dark,#075f9d); flex: 0 0 16px; height: 16px; margin: 0; width: 16px; }
.av-theme-selector [data-av-theme-status] { color: var(--avs-text-muted,#586879); display: block; font-size: 11px; padding-inline: 8px; }
.av-theme-selector [data-av-theme-status]:empty { display: none; }
.av-theme-selector:disabled label { cursor: not-allowed; opacity: .7; }
.av-theme-colors { display: inline-flex; flex-shrink: 0; gap: 2px; }
.av-theme-colors i { border: 1px solid #8993a1; border-radius: 50%; display: block; height: 12px; width: 12px; }
.av-theme-colors[data-theme-swatch="av"] i:nth-child(1) { background: #eef5fb; }
.av-theme-colors[data-theme-swatch="av"] i:nth-child(2) { background: #149bd7; }
.av-theme-colors[data-theme-swatch="av"] i:nth-child(3) { background: #0d1520; }
.av-theme-colors[data-theme-swatch="av-pro"] i:nth-child(1) { background: #10141c; }
.av-theme-colors[data-theme-swatch="av-pro"] i:nth-child(2) { background: #b6ff36; }
.av-theme-colors[data-theme-swatch="av-pro"] i:nth-child(3) { background: #f5f7fa; }
.av-theme-colors[data-theme-swatch="av-heritage"] i:nth-child(1) { background: #f6f2e9; }
.av-theme-colors[data-theme-swatch="av-heritage"] i:nth-child(2) { background: #75562e; }
.av-theme-colors[data-theme-swatch="av-heritage"] i:nth-child(3) { background: #24221f; }
.av-theme-selector input:focus-visible,.av-theme-disclosure summary:focus-visible { outline: 3px solid var(--avs-blue-dark,#075f9d); outline-offset: 3px; }
.av-theme-disclosure { font-size: 13px; max-width: 100%; }
.av-theme-disclosure summary { cursor: pointer; min-height: 44px; padding-block: 12px; }
.av-theme-disclosure .av-theme-selector { min-width: min(300px, calc(100vw - 48px)); }


/* Remaining legacy fixed-color components, using the same semantic palette. */
html[data-av-theme]:not([data-av-theme="av"]) :where(.av-browse-card,.contact-concierge,.contact-concierge-panel,.contact-premium,.contact-grid,.contact-section,.contact-direct,.get-in-touch,.contact-form,.contact-concierge-layout,.contact-concierge-card,.contact-card-premium,.home-feature-card,.home-section-link,.product-detail-section-muted,.product-detail-offer,.variant-selector,.variant-group,.variant-option,.product-highlight-list li,.product-detail-purchase,.product-detail-thumb,.product-detail-in-bag,.cart-item,.checkout-offer-details,.track-form,.track-result,.tracking-result,.chatbot-message-bot) { background: var(--theme-surface) !important; color: var(--theme-text) !important; border-color: var(--theme-border) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.av-browse-card-media,.product-detail-image-zoom) { background: var(--theme-media) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.product-card-wishlist,.product-card-compare,.finder-compare-btn,.finder-wizard-back,.product-detail-add-bag-btn,.home-section-link,.home-view-all,.home-section-action,.home-view-all-link) { background: var(--theme-surface) !important; color: var(--theme-text) !important; border-color: var(--theme-border) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.header-finder-cta,.product-detail-buy-now-btn) { background: var(--theme-accent) !important; color: var(--theme-on-accent) !important; border-color: var(--theme-accent) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.header-finder-cta,.btn-primary,.finder-view-btn,.finder-wizard-next) :where(span,strong,small):not(:where(.home-carousel *)) { color: var(--theme-on-accent) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.product-detail-purchase-summary strong,.product-detail-qty-label,.finder-product-price,.cart-item-name,.checkout-item-name,.checkout-total-line,.compare-product-name,.home-desktop-link-label) { color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.finder-wizard-hint,.finder-wizard-step-label,.finder-product-mrp,.product-category,.product-detail-desc,.product-detail-player-guidance-copy,.product-detail-purchase-summary-label,.product-detail-assurance,.product-detail-stock,.product-detail-price .mrp,.product-review-summary-line,.review-author,.review-meta,.sr-only) { color: var(--theme-muted) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.finder-results-eyebrow,.trust-summary-stars,.review-stars,.product-detail-kicker,.product-detail-offer .offer-tag) { color: var(--theme-accent) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.finder-product-reasons li,.finder-product-benefits li,.finder-product-highlights li) { color: var(--theme-text) !important; background: var(--theme-raised) !important; }
html[data-av-theme]:not([data-av-theme="av"]) .favorite-info h3 button { color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) #checkoutForm .checkout-fulfilment label { color: var(--theme-text) !important; border-color: var(--theme-border) !important; background: var(--theme-surface) !important; }
html[data-av-theme]:not([data-av-theme="av"]) #checkoutForm .checkout-fulfilment label:has(input:checked) { border-color: var(--theme-accent) !important; background: var(--theme-tint) !important; box-shadow: inset 0 0 0 1px var(--theme-accent) !important; }
html[data-av-theme]:not([data-av-theme="av"]) #checkoutForm .checkout-fulfilment small { color: var(--theme-muted) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.variant-option.selected,.variant-option[aria-pressed="true"],.product-detail-thumb.active):not(:where(#avChatbotRoot *,.home-carousel *)) { border-color: var(--theme-accent) !important; background: var(--theme-tint) !important; color: var(--theme-accent) !important; }
/* Navigation badges, support details and brand panels. */
html[data-av-theme]:not([data-av-theme="av"]) :where(.collection-all,.section-link,.get-in-touch-card,.finder-compare-btn) { background: var(--theme-surface) !important; color: var(--theme-text) !important; border-color: var(--theme-border) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.get-in-touch-channel,.contact-chip-label,.finder-compare-icon) { color: var(--theme-muted) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.trust-summary-rating strong,.trust-summary-score strong,.trust-summary-meta strong,.trust-summary-top strong) { color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.trust-summary-rating span,.trust-summary-meta span,.trust-summary-top>span) { color: var(--theme-muted) !important; }
html[data-av-theme]:not([data-av-theme="av"]) .av-brand-story { background: var(--theme-inverse) !important; color: var(--theme-on-inverse) !important; }
html[data-av-theme]:not([data-av-theme="av"]) .av-brand-story :where(h2,p,.av-signature) { color: var(--theme-on-inverse) !important; }
html[data-av-theme]:not([data-av-theme="av"]) .av-brand-story :where(h2 span,.av-brand-story-eyebrow,.av-craftsmanship-link) { color: var(--theme-on-inverse-accent) !important; }
html[data-av-theme="av-pro"] { --theme-on-inverse-accent: #b6ff36; }
html[data-av-theme="av-heritage"] { --theme-on-inverse-accent: #e0bf89; }
.av-theme-selector [hidden] { display: none !important; }

html[data-av-theme]:not([data-av-theme="av"]) .finder-product-why-list li { background: var(--theme-raised) !important; color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) .product-detail-price .price { color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.product-detail-highlight,.product-detail-badge,.product-detail-purchase-summary,.variant-option) { color: var(--theme-text) !important; }


/* Neutralize color tweens only while committing a new palette. */
html.av-theme-changing *, html.av-theme-changing *::before, html.av-theme-changing *::after { transition-property: transform, opacity !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.team-page-hero,.team-grid-section,.team-empty-state,.team-page-cta,.track-lookup-security-note,.track-lookup-compact,.track-lookup-compact-card,.track-lookup-chip,.product-mini-card,.product-spec-row,.spec-row,.product-detail-player-guidance,.order-reference-code) { background: var(--theme-surface) !important; color: var(--theme-text) !important; border-color: var(--theme-border) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.track-label-text,.variant-group-label,.variant-group-value,.product-detail-badge,.product-detail-purchase-summary strong) { color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.track-field-help,.spec-benefit-note,.product-detail-player-guidance-title,.product-detail-player-guidance-copy,.shop-header-subtitle,.smart-finder-reset) { color: var(--theme-muted) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.product-detail-badge,.track-lookup-badge) { background: var(--theme-tint) !important; color: var(--theme-accent) !important; }
html[data-av-theme]:not([data-av-theme="av"]) .google-review-card strong { color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.required,.google-stars-small) { color: var(--theme-accent) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.home-kit-upsell,.kit-upsell,.home-kit-banner) { background: var(--theme-raised) !important; }
html[data-av-theme]:not([data-av-theme="av"]) .story-av-message strong { color: var(--theme-accent) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.header-utility,.site-nav-signoff) :where(a,p,span,strong,h2,h3,small):not(:where(.support-dropdown-menu *)) { color: var(--theme-on-inverse) !important; }
html[data-av-theme]:not([data-av-theme="av"]) .skip-link { background: var(--theme-inverse) !important; color: var(--theme-on-inverse) !important; }
html[data-av-theme]:not([data-av-theme="av"]) .btn-primary:not(:where(.home-carousel *)) { background: var(--theme-accent) !important; color: var(--theme-on-accent) !important; border-color: var(--theme-accent) !important; }
html[data-av-theme]:not([data-av-theme="av"]) .btn-primary :where(span,strong,small):not(:where(.home-carousel *)) { color: var(--theme-on-accent) !important; }

html[data-av-theme]:not([data-av-theme="av"]) :where(.review-bar-row span,.review-bar-row strong,.get-in-touch-copy strong,.track-hero-badge span) { color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.get-in-touch-copy>span,.shop-header-copy>span,.shop-heading-copy>span,.product-spec-grid dt,.spec-benefit-note) { color: var(--theme-muted) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.product-spec-grid>div,.kit-builder-section,.track-hero-badge) { background: var(--theme-raised) !important; border-color: var(--theme-border) !important; }

html[data-av-theme]:not([data-av-theme="av"]) .shop-discovery-category-tile span { color: var(--theme-muted) !important; }

html[data-av-theme]:not([data-av-theme="av"]) :where(.track-contact-label span,.review-score-card>span,.product-spec-grid dd) { color: var(--theme-muted) !important; }

/* Assistant, comparison tables and account/order surfaces share the palette. */
html[data-av-theme]:not([data-av-theme="av"]) :where(.compare-tray-clear,.tiny-compare-remove,.account-block,.account-address-form) { background: var(--theme-surface) !important; color: var(--theme-text) !important; border-color: var(--theme-border) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.compare-table-wrap,.compare-table tbody tr,.compare-table tbody td,.compare-table th) { background: var(--theme-raised) !important; color: var(--theme-text) !important; border-color: var(--theme-border) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.review-bar-fill,.finder-wizard-progress-fill) { background: var(--theme-accent) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.compare-title,.compare-td-primary,.compare-row-label,.account-chip strong,.account-address-name) { color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.account-address-line,.cart-item-options,.checkout-item-options,.review-bar-row) { color: var(--theme-muted) !important; }

html[data-av-theme]:not([data-av-theme="av"]) :where(.cart-item-info .name,.cart-item-total) { color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.cart-item-unit-price,.cart-item-info .meta) { color: var(--theme-muted) !important; }
html[data-av-theme]:not([data-av-theme="av"]) :where(.cart-single-support,.checkout-trust-strip) { background: var(--theme-raised) !important; color: var(--theme-text) !important; border-color: var(--theme-border) !important; }
html[data-av-theme]:not([data-av-theme="av"]) .cart-item-remove { color: var(--theme-error) !important; }
html[data-av-theme]:not([data-av-theme="av"]) .floating-whatsapp { color: #fff !important; }

html[data-av-theme]:not([data-av-theme="av"]) .checkout-trust-strip span { background: var(--theme-raised) !important; color: var(--theme-text) !important; }
html[data-av-theme]:not([data-av-theme="av"]) .favorites-heading [data-favorites-summary] { color: var(--theme-muted) !important; }
html[data-av-theme]:not([data-av-theme="av"]) { --toast-shadow: var(--theme-shadow); --shadow-xs: var(--theme-shadow); }
html[data-av-theme]:not([data-av-theme="av"]) :where(.product-card,.cart-drawer,.favorites-drawer,.site-nav-drawer,.login-modal-content,.account-modal-content,.checkout-modal-inner,.product-detail-inner,.btn-primary):not(:where(.home-carousel *)) { box-shadow: var(--theme-shadow) !important; }

html[data-av-theme]:not([data-av-theme="av"]) .site-footer :where(p,span,strong,h2,h3,small):not(:where(a *)) { color: var(--theme-on-inverse) !important; }

/* AV Pro PDP only. Keep legacy AV and Heritage cascades untouched.
   !important is used only where the shared theme layer already marks the
   same property important (including generic paragraph/button rules). */
html[data-av-theme="av-pro"] .product-detail-modal .wishlist-toggle {
  background: var(--theme-surface);
  border-color: var(--theme-border);
  box-shadow: var(--theme-shadow);
}
html[data-av-theme="av-pro"] .product-detail-modal .wishlist-toggle:hover:not(:disabled) {
  background: var(--theme-raised);
  border-color: var(--theme-accent);
}
html[data-av-theme="av-pro"] .product-detail-modal .wishlist-toggle:is(.active,[aria-pressed="true"],:active):not(:disabled) {
  background: var(--theme-tint) !important;
  border-color: var(--theme-accent) !important;
}
html[data-av-theme="av-pro"] .product-detail-modal :is(.product-image-expand-btn,.variant-chip,.jersey-size-chip) {
  background: var(--theme-surface);
  color: var(--theme-text);
  border-color: var(--theme-border);
  box-shadow: var(--theme-shadow);
}
html[data-av-theme="av-pro"] .product-detail-modal :is(.product-image-expand-btn,.variant-chip,.jersey-size-chip):hover:not(:disabled):not(.disabled) {
  background: var(--theme-raised);
  border-color: var(--theme-accent);
}
html[data-av-theme="av-pro"] .product-detail-modal :is(.variant-chip,.jersey-size-chip):is(.active,:active):not(:disabled):not(.disabled) {
  background: var(--theme-tint);
  color: var(--theme-accent);
  border-color: var(--theme-accent);
}
html[data-av-theme="av-pro"] .product-detail-modal :is(.wishlist-toggle,.variant-chip,.jersey-size-chip):is(:disabled,.disabled) {
  background: var(--theme-raised) !important;
  color: var(--theme-muted) !important;
  border-color: var(--theme-border) !important;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}
html[data-av-theme="av-pro"] .product-detail-modal .variant-chip.disabled::after {
  border-color: var(--theme-muted);
}
html[data-av-theme="av-pro"] .product-detail-modal .product-detail-actions {
  background: var(--theme-surface);
  border-color: var(--theme-border);
}
html[data-av-theme="av-pro"] .product-detail-modal .product-detail-buy-now-btn:hover:not(:disabled) {
  background: var(--theme-accent-hover) !important;
}
html[data-av-theme="av-pro"] .product-detail-modal .product-detail-actions .btn:disabled {
  background: var(--theme-raised) !important;
  color: var(--theme-muted) !important;
  border-color: var(--theme-border) !important;
  opacity: 1;
}
html[data-av-theme="av-pro"] .product-detail-modal :is(.product-best-for span,.product-performance-profile-list li,.seasonal-bat-care-notice) {
  background: var(--theme-raised);
  border-color: var(--theme-border);
  color: var(--theme-text);
  box-shadow: var(--theme-shadow);
}
html[data-av-theme="av-pro"] .product-detail-modal :is(.ppf-label,.ppf-note,.product-detail-trust-rating .trust-rating-text) {
  color: var(--theme-muted);
}
html[data-av-theme="av-pro"] .product-detail-modal :is(.product-performance-profile-list li strong,.seasonal-bat-care-message strong) {
  color: var(--theme-text);
}
html[data-av-theme="av-pro"] .product-detail-modal .seasonal-bat-care-icon {
  background: var(--theme-tint);
  color: var(--theme-accent);
}
html[data-av-theme="av-pro"] .product-detail-modal .product-detail-purchase-message.success {
  color: var(--theme-success) !important;
}
html[data-av-theme="av-pro"] .product-detail-modal .product-detail-purchase-message.error {
  color: var(--theme-error) !important;
}
html[data-av-theme="av-pro"] .product-detail-modal :is(.variant-group,.jersey-size-chip-group).needs-selection {
  background: var(--theme-error-bg) !important;
  border-color: var(--theme-error) !important;
}
html[data-av-theme="av-pro"] .product-detail-modal .variant-group.needs-selection .variant-group-label {
  color: var(--theme-error) !important;
}
html[data-av-theme="av-pro"] .product-detail-modal :is(.product-detail-video-play-icon,.product-detail-thumb-play,.product-detail-thumb-label) {
  background: var(--theme-inverse);
  color: var(--theme-on-inverse);
}

/* Tracking document tables use the same reading color tokens. Policy layout lives in policy-pages.css. */
html[data-av-theme="av-pro"] .track-page {
  --reading-table-head: var(--theme-raised);
  --reading-table-row: var(--theme-surface);
  line-height: 1.65;
}
html[data-av-theme="av-pro"] .track-panel a:not(.btn) { color: var(--reading-link); text-decoration: underline; text-underline-offset: 3px; }
html[data-av-theme="av-pro"] .track-panel a:not(.btn):is(:hover,:active) { color: var(--theme-accent-hover); }
html[data-av-theme="av-pro"] .track-inline-copy { min-height: 44px; }
html[data-av-theme="av-pro"] .track-page input::placeholder { opacity: 1; }
html[data-av-theme="av-pro"] .track-page .btn:disabled { opacity: 1; cursor: wait; }
html[data-av-theme="av-pro"] .track-page table { border-collapse: collapse; width: 100%; background: var(--reading-table-row); color: var(--reading-text); }
html[data-av-theme="av-pro"] .track-page :is(th,td) { border: 1px solid var(--reading-border); padding: 10px; overflow-wrap: anywhere; }
html[data-av-theme="av-pro"] .track-page th { background: var(--reading-table-head); }
