/* Aquatorya semantic theme. Candidate only; not published. */
:root {
  --aq-page:#ffffff; --aq-surface:#ffffff; --aq-surface-soft:#f3f5f6;
  --aq-text:#2c2c2c; --aq-muted:#596675; --aq-link:#0b478d; --aq-link-hover:#a80012;
  --aq-border:#8793a1; --aq-field:#ffffff; --aq-focus:#0b478d;
  --aq-danger:#a6202d; --aq-danger-bg:#fff0f1; --aq-warning:#765000; --aq-warning-bg:#fff5dc;
  --aq-success:#17602f; --aq-success-bg:#edf9f0; --aq-info-bg:#edf5ff;
  --aq-button:#0b478d; --aq-button-text:#ffffff;
}
html[data-aq-scheme="dark"] {
  color-scheme:dark;
  --aq-page:#19212b; --aq-surface:#232f3d; --aq-surface-soft:#2c3b4c;
  --aq-text:#edf2f7; --aq-muted:#bdc9d7; --aq-link:#8bc4ff; --aq-link-hover:#c4e1ff;
  --aq-border:#8494a8; --aq-field:#263646; --aq-focus:#a4d2ff;
  --aq-danger:#ffb6bd; --aq-danger-bg:#492735; --aq-warning:#ffda99; --aq-warning-bg:#43351f;
  --aq-success:#a0e5b6; --aq-success-bg:#1c3e30; --aq-info-bg:#203c55;
  /* Bridge only native storefront tokens; keep primary/button and widget tokens intact. */
  --background-color:var(--aq-page); --text-color:var(--aq-text);
  --secondary-700:var(--aq-text); --secondary-500:var(--aq-muted); --secondary-600:var(--aq-muted);
  --input-background-color:var(--aq-field); --text-popup:var(--aq-text);
}
html[data-aq-scheme="light"] { color-scheme:light; }
.aq-content {color:var(--aq-text);}
.aq-card {background:var(--aq-surface);color:var(--aq-text);border:1px solid var(--aq-border);border-radius:12px;padding:24px;}
.aq-card--soft {background:var(--aq-surface-soft);}
.aq-muted {color:var(--aq-muted);}
.aq-content a:not(.btn) {color:var(--aq-link);text-decoration:underline;text-underline-offset:3px;}
.aq-content h2,.aq-content h3 {color:var(--aq-text);}
.aq-callout {padding:20px;border-inline-start:4px solid var(--aq-link);background:var(--aq-info-bg);color:var(--aq-text);}
.aq-callout--warning {border-color:var(--aq-warning);background:var(--aq-warning-bg);color:var(--aq-warning);}
.aq-callout--danger {border-color:var(--aq-danger);background:var(--aq-danger-bg);color:var(--aq-danger);}
.aq-callout--success {border-color:var(--aq-success);background:var(--aq-success-bg);color:var(--aq-success);}
/* Attribute overrides are limited to legacy prose classified by the adapter. */
html[data-aq-scheme="dark"] [data-aq-legacy-bg="surface"] {background-color:var(--aq-surface)!important;color:var(--aq-text);}
html[data-aq-scheme="dark"] [data-aq-legacy-bg="soft"] {background-color:var(--aq-surface-soft)!important;color:var(--aq-text);}
html[data-aq-scheme="dark"] [data-aq-legacy-bg="info"] {background-color:var(--aq-info-bg)!important;color:var(--aq-text);}
html[data-aq-scheme="dark"] [data-aq-legacy-bg="warning"] {background-color:var(--aq-warning-bg)!important;color:var(--aq-warning);}
html[data-aq-scheme="dark"] [data-aq-legacy-bg="danger"] {background-color:var(--aq-danger-bg)!important;color:var(--aq-danger);}
html[data-aq-scheme="dark"] [data-aq-legacy-bg="success"] {background-color:var(--aq-success-bg)!important;color:var(--aq-success);}
html[data-aq-scheme="dark"] [data-aq-legacy-border] {border-color:var(--aq-border)!important;}
html[data-aq-scheme="dark"] [data-aq-tone="text"] {color:var(--aq-text)!important;}
html[data-aq-scheme="dark"] [data-aq-tone="muted"] {color:var(--aq-muted)!important;}
html[data-aq-scheme="dark"] [data-aq-tone="danger"] {color:var(--aq-danger)!important;}
html[data-aq-scheme="dark"] [data-aq-tone="warning"] {color:var(--aq-warning)!important;}
html[data-aq-scheme="dark"] [data-aq-tone="success"] {color:var(--aq-success)!important;}
html[data-aq-scheme="dark"] [data-aq-tone="link"] {color:var(--aq-link)!important;}
html[data-aq-scheme="dark"] [data-aq-tone="link"]:is(:hover,:focus-visible) {color:var(--aq-link-hover)!important;}
html[data-aq-scheme="dark"] a[data-aq-tone="link"]:not([class*="header"]):not([class*="sidebar"]):not([class*="personal"]):not([class*="btn"]),
html[data-aq-scheme="dark"] :is(.pseudo-link,.bx-soa-delivery-location-switcher__change) {text-decoration:underline;text-underline-offset:3px;}
/* Native components: pair background and text; never target carrier widgets. */
html[data-aq-scheme="dark"] .blog-detail__tag-link {background:var(--aq-surface-soft);color:var(--aq-link);border:1px solid var(--aq-border);}
html[data-aq-scheme="dark"] .blog-detail__tag-link:hover {background:var(--aq-info-bg);color:var(--aq-link-hover);}
html[data-aq-scheme="dark"] :is(.blog-list__tags-item,.blog-list__filter-item) {color:var(--aq-text);}
html[data-aq-scheme="dark"] :is(.catalog-item__card,.bx-soa-cart-total,.basket-items-list-wrapper) {color:var(--aq-text);}
html[data-aq-scheme="dark"] .basket-delivery-warning-text {color:var(--aq-warning);}
html[data-aq-scheme="dark"] :is(.alert-danger,.bx-soa-error-alert) {background:var(--aq-danger-bg);color:var(--aq-danger);border-color:var(--aq-danger);}
html[data-aq-scheme="dark"] .has-error :is(.form-control,.input-text) {border-color:var(--aq-danger);}
html[data-aq-scheme] :is(header,main,.sidebar-section) :is(.input-text,.form-control,.input-search,.search-input)::placeholder {color:var(--aq-muted)!important;opacity:1;}
html[data-aq-scheme] :is(header,main) :is(a,button,input,select,textarea,[tabindex]):not(.search-input):not(.bx-ui-sls-fake):not(.bx-ui-sls-route):focus-visible {outline:2px solid var(--aq-focus);outline-offset:3px;}
/* Composite search fields have one focus indicator on their outer shell. */
html[data-aq-scheme] :is(.search-input,.bx-ui-sls-fake,.bx-ui-sls-route):focus {outline:none;}
html[data-aq-scheme] .search-label:focus-within,
html[data-aq-scheme] .bx-sls .dropdown-block:focus-within {border-color:var(--aq-focus);}
/* New CMS materials use .aq-content/.aq-card/.aq-callout; no fixed inline palette. */

/* Shared status components and light-theme secondary text. */
html[data-aq-scheme="light"] :is(header,main,.mobile-bottom-menu) {--secondary-500:var(--aq-muted);--secondary-600:var(--aq-muted);}
html[data-aq-scheme="light"] :is(.blog-detail__content,.sidebar-section,.tab__body) a[data-aq-tone="link"] {color:var(--aq-link)!important;}
html[data-aq-scheme="dark"] .blog-list-section {background:var(--aq-surface);color:var(--aq-text);border:1px solid var(--aq-border);}
html[data-aq-scheme="dark"] .blog-list-section.active {background:var(--aq-info-bg);color:var(--aq-text);border-color:var(--aq-link);}
html[data-aq-scheme="dark"] .blog-list-section-count {background:transparent;color:var(--aq-muted);}
html[data-aq-scheme="dark"] [data-aq-border-top] {border-top-color:var(--aq-border)!important;}
html[data-aq-scheme="dark"] [data-aq-border-right] {border-right-color:var(--aq-border)!important;}
html[data-aq-scheme="dark"] [data-aq-border-bottom] {border-bottom-color:var(--aq-border)!important;}
html[data-aq-scheme="dark"] [data-aq-border-left] {border-left-color:var(--aq-border)!important;}
/* External light popups retain their own color scheme. */
html[data-aq-scheme] .popup-window.--ui-context-content-light {color-scheme:light;}
html[data-aq-scheme] main :is(.vat-text strong,.d-flex-reviews .r-m-1,.gray-text) {color:var(--aq-muted)!important;}
html[data-aq-scheme] main .bx-ui-sls-fake::placeholder {color:var(--aq-muted)!important;opacity:1;}
html[data-aq-scheme="dark"] main :is(.bx-ui-sls-fake,.bx-ui-sls-route) {color:var(--aq-text);}
/* Native checkout errors and selected controls use the same semantic pairs. */
html[data-aq-scheme] #bx-soa-order {--error:var(--aq-danger);--error-light:var(--aq-danger-bg);}
html[data-aq-scheme] main [id^="tooltip-soa-property-"] .tooltip-inner {color:var(--aq-danger);background:var(--aq-danger-bg);border:1px solid var(--aq-danger);}
html[data-aq-scheme="dark"] .input-radio:checked {border-color:var(--aq-link);}
html[data-aq-scheme="dark"] .input-radio:checked::before {background-color:var(--aq-link);}
html[data-aq-scheme="dark"] .input-checkbox:checked {border-color:var(--aq-link);}
html[data-aq-scheme="dark"] .text-primary {color:var(--aq-link)!important;}
/* Explicit pairs also cover theme-auto when system preference changes. */
html[data-aq-scheme="light"] {
  --background-color:var(--aq-page);--text-color:var(--aq-text);--input-background-color:var(--aq-field);
  --secondary-700:#495057;--text-popup:var(--aq-text);--primary-100:#0b478d0f;--primary-200:#0b478d33;
}
html[data-aq-scheme="dark"] {--primary-100:#ffffff1a;--primary-200:#ffffff33;}

html[data-aq-scheme] #SDEK_pvz {color-scheme:light;}

/* Tags wrap as whole pills on narrow screens instead of splitting words. */
html[data-aq-scheme] [data-aq-tag-list] {display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none;}
html[data-aq-scheme] [data-aq-tag-list]>li {flex:0 1 auto;width:auto;max-width:100%;min-width:0;}
html[data-aq-scheme] .blog-detail__tag-link {display:inline-flex;max-width:100%;padding:4px 10px;border-radius:16px;white-space:nowrap;word-break:normal;overflow-wrap:normal;}

/* Selected checkout city is highlighted independently of the change-city button. */
html[data-aq-scheme="light"] #bx-soa-delivery .bx-soa-delivery-location-switcher__city {color:#E20613;}
html[data-aq-scheme="dark"] #bx-soa-delivery .bx-soa-delivery-location-switcher__city {color:#FF8A8A;}
