:root {
    --a11y-font-scale: 1;
}

html {
    font-size: calc(100% * var(--a11y-font-scale, 1));
}

.skip-links {
    position: absolute;
    z-index: 10001;
}

.skip-links .skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10001;
    padding: 0.75rem 1rem;
    background: #000;
    color: #fff;
    text-decoration: underline;
    border-radius: 8px;
    font-weight: 600;
}

.skip-links .skip-link:focus,
.skip-links .skip-link:focus-visible {
    left: 1rem;
    top: 1rem;
    outline: 3px solid #ffe600;
    outline-offset: 2px;
}

.skip-links .skip-link:nth-child(2):focus,
.skip-links .skip-link:nth-child(2):focus-visible {
    top: 3.75rem;
}

.skip-links .skip-link:nth-child(3):focus,
.skip-links .skip-link:nth-child(3):focus-visible {
    top: 6.5rem;
}

.a11y-toolbar {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: min(22rem, calc(100vw - 2rem));
    font-size: 16px;
}

.a11y-toolbar-toggle {
    min-height: 2.75rem;
    padding: 0.45rem 0.9rem;
    border: 2px solid #dce3d6;
    border-radius: 999px;
    background: #fff;
    color: #1a2612;
    box-shadow: 0 8px 24px rgba(26, 38, 18, 0.12);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.a11y-toolbar-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #3d6b1e;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.a11y-toolbar.is-collapsed .a11y-toolbar-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.a11y-toolbar.is-collapsed .a11y-toolbar-toggle {
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
}

.a11y-toolbar-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0.5rem;
    background: #fff;
    border: 2px solid #dce3d6;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(26, 38, 18, 0.12);
}

.a11y-toolbar-panel[hidden] {
    display: none !important;
}

.a11y-toolbar button,
.a11y-toolbar-link {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.4rem 0.7rem;
    border: 2px solid #dce3d6;
    border-radius: 999px;
    background: #f0f4ed;
    color: #1a2612;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.a11y-toolbar button[aria-pressed="true"] {
    background: #3d6b1e;
    border-color: #3d6b1e;
    color: #fff;
}

.a11y-toolbar-link:hover,
.a11y-toolbar button:hover,
.a11y-toolbar-toggle:hover {
    border-color: #3d6b1e;
}

.a11y-toolbar button:focus-visible,
.a11y-toolbar-link:focus-visible,
.a11y-toolbar-toggle:focus-visible {
    outline: 3px solid #3d6b1e;
    outline-offset: 2px;
}

html.a11y-contrast {
    --color-bg: #000;
    --color-bg-soft: #111;
    --color-surface: #000;
    --color-border: #fff;
    --color-text: #fff;
    --color-text-muted: #fff;
    --color-text-light: #fff;
    --color-accent: #ffe600;
    --color-accent-hover: #ffe600;
    --bg-primary: #000;
    --bg-secondary: #111;
    --bg-card: #000;
    --text-primary: #fff;
    --text-secondary: #fff;
    --text-muted: #fff;
    --border-color: #fff;
    --border-light: #fff;
    --primary: #ffe600;
    --primary-dark: #ffe600;
    color-scheme: dark;
}

html.a11y-contrast,
html.a11y-contrast body {
    background: #000 !important;
    color: #fff !important;
}

html.a11y-contrast body *:not(img):not(svg):not(video):not(canvas):not(iframe):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon):not(script):not(style):not(link):not(meta):not(br):not(hr) {
    background-color: transparent !important;
    background-image: none !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline-color: #ffe600 !important;
}

html.a11y-contrast body,
html.a11y-contrast main,
html.a11y-contrast header,
html.a11y-contrast footer,
html.a11y-contrast section,
html.a11y-contrast article,
html.a11y-contrast aside,
html.a11y-contrast nav,
html.a11y-contrast .product-page,
html.a11y-contrast .product-content,
html.a11y-contrast .product-description,
html.a11y-contrast .order-page,
html.a11y-contrast .order-form,
html.a11y-contrast .order-summary,
html.a11y-contrast .variant-card,
html.a11y-contrast .variants-section,
html.a11y-contrast .author-card,
html.a11y-contrast .product-footer,
html.a11y-contrast .site-header,
html.a11y-contrast .site-footer,
html.a11y-contrast .content-box,
html.a11y-contrast .modal,
html.a11y-contrast .modal-content,
html.a11y-contrast .newsletter-box,
html.a11y-contrast .support-widget-panel,
html.a11y-contrast .cookie-banner,
html.a11y-contrast [class*="card"],
html.a11y-contrast [class*="panel"],
html.a11y-contrast [class*="box"],
html.a11y-contrast [class*="banner"] {
    background: #000 !important;
    background-color: #000 !important;
    background-image: none !important;
    color: #fff !important;
}

html.a11y-contrast h1,
html.a11y-contrast h2,
html.a11y-contrast h3,
html.a11y-contrast h4,
html.a11y-contrast h5,
html.a11y-contrast h6,
html.a11y-contrast p,
html.a11y-contrast li,
html.a11y-contrast span,
html.a11y-contrast label,
html.a11y-contrast strong,
html.a11y-contrast em,
html.a11y-contrast small,
html.a11y-contrast blockquote,
html.a11y-contrast figcaption,
html.a11y-contrast td,
html.a11y-contrast th,
html.a11y-contrast dt,
html.a11y-contrast dd {
    color: #fff !important;
}

html.a11y-contrast a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-outline):not(.btn-white):not(.btn-buy):not(.btn-large):not(.product-float-buy):not(.a11y-toolbar-link),
html.a11y-contrast a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-outline):not(.btn-white):not(.btn-buy):not(.product-float-buy):visited,
html.a11y-contrast a:not(.btn):not(.product-float-buy) span,
html.a11y-contrast a:not(.btn):not(.product-float-buy) strong {
    color: #ffe600 !important;
    text-decoration: underline !important;
}

html.a11y-contrast a.product-float-buy,
html.a11y-contrast a.product-float-buy:link,
html.a11y-contrast a.product-float-buy:visited,
html.a11y-contrast a.product-float-buy:hover,
html.a11y-contrast a.product-float-buy:focus,
html.a11y-contrast a.product-float-buy:active {
    background: #ffe600 !important;
    background-color: #ffe600 !important;
    background-image: none !important;
    color: #000 !important;
    border: 2px solid #ffe600 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

html.a11y-contrast .header-search-btn,
html.a11y-contrast .header-search-btn:hover,
html.a11y-contrast .header-search-btn:focus {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffe600 !important;
    border: none !important;
    box-shadow: none !important;
}

html.a11y-contrast .header-search-btn svg,
html.a11y-contrast .header-search-btn svg * {
    stroke: #ffe600 !important;
    fill: none !important;
    color: #ffe600 !important;
}

html.a11y-contrast .header-search-form,
html.a11y-contrast .header-search-input {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

html.a11y-contrast .header-search-input::placeholder {
    color: #ccc !important;
}

html.a11y-contrast button:not(.header-search-btn):not(.a11y-toolbar-toggle):not(#a11y-font-up):not(#a11y-font-down):not(#a11y-contrast):not(#a11y-links):not(#a11y-spacing):not(#a11y-reset):not(#a11y-collapse),
html.a11y-contrast a.btn,
html.a11y-contrast a.btn:visited,
html.a11y-contrast a.btn:hover,
html.a11y-contrast a.btn:focus,
html.a11y-contrast .btn,
html.a11y-contrast .btn:visited,
html.a11y-contrast .btn-primary,
html.a11y-contrast .btn-primary:visited,
html.a11y-contrast .btn-white,
html.a11y-contrast .btn-white:visited,
html.a11y-contrast .btn-outline,
html.a11y-contrast .btn-outline:visited,
html.a11y-contrast .btn-secondary,
html.a11y-contrast .btn-buy,
html.a11y-contrast .btn-large,
html.a11y-contrast .hero .btn,
html.a11y-contrast .hero .btn-white,
html.a11y-contrast .hero .btn-outline,
html.a11y-contrast .cta-section .btn,
html.a11y-contrast .cta-section .btn-white,
html.a11y-contrast input[type="submit"],
html.a11y-contrast input[type="button"],
html.a11y-contrast .variant-card .btn,
html.a11y-contrast a.btn-buy,
html.a11y-contrast a.btn-buy:visited,
html.a11y-contrast .support-widget-btn,
html.a11y-contrast .support-widget-search-btn {
    background: #ffe600 !important;
    background-color: #ffe600 !important;
    background-image: none !important;
    color: #000 !important;
    border: 2px solid #ffe600 !important;
    text-decoration: none !important;
}

html.a11y-contrast button:not(.header-search-btn) *,
html.a11y-contrast a.btn *,
html.a11y-contrast .btn *,
html.a11y-contrast .btn-buy *,
html.a11y-contrast input[type="submit"] {
    color: #000 !important;
    background: transparent !important;
    text-decoration: none !important;
}

html.a11y-contrast input,
html.a11y-contrast select,
html.a11y-contrast textarea {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    caret-color: #ffe600 !important;
}

html.a11y-contrast input::placeholder,
html.a11y-contrast textarea::placeholder {
    color: #ccc !important;
    opacity: 1 !important;
}

html.a11y-contrast img,
html.a11y-contrast video,
html.a11y-contrast svg,
html.a11y-contrast canvas,
html.a11y-contrast iframe {
    background: transparent !important;
    opacity: 1 !important;
    filter: none !important;
}

html.a11y-contrast .a11y-toolbar,
html.a11y-contrast .a11y-toolbar * {
    box-shadow: none !important;
}

html.a11y-contrast .a11y-toolbar-toggle,
html.a11y-contrast .a11y-toolbar-panel,
html.a11y-contrast .a11y-toolbar button,
html.a11y-contrast .a11y-toolbar-link {
    background: #000 !important;
    color: #ffe600 !important;
    border-color: #ffe600 !important;
}

html.a11y-contrast .a11y-toolbar button[aria-pressed="true"],
html.a11y-contrast .a11y-toolbar-toggle-icon {
    background: #ffe600 !important;
    color: #000 !important;
    border-color: #ffe600 !important;
}

html.a11y-contrast .a11y-toolbar button[aria-pressed="true"] *,
html.a11y-contrast .a11y-toolbar-toggle-icon {
    color: #000 !important;
}

html.a11y-underline-links a {
    text-underline-offset: 3px;
    text-decoration: underline !important;
}

html.a11y-spacing body {
    line-height: 1.9;
    letter-spacing: 0.02em;
    word-spacing: 0.08em;
}

html.a11y-spacing p,
html.a11y-spacing li,
html.a11y-spacing label {
    margin-bottom: 0.85em;
}

@media (max-width: 768px) {
    .a11y-toolbar {
        left: 0.75rem;
        bottom: 5.5rem;
    }
}

[data-theme="dark"] .a11y-toolbar-toggle,
[data-theme="dark"] .a11y-toolbar-panel {
    background: #1a2612;
    color: #f0f4ed;
    border-color: #3d4d36;
}

[data-theme="dark"] .a11y-toolbar button,
[data-theme="dark"] .a11y-toolbar-link {
    background: #24301c;
    color: #f0f4ed;
    border-color: #3d4d36;
}
