/**
 * Visitor accessibility settings (themes/common/js/a11y_settings.js + a11y_tools.js).
 * Each setting is a class on <html> ("cms-a11y-<key>" or "cms-a11y-<key>-<level>"), added from
 * <head> before the page paints. Page rules target `body`, and the widget itself lives outside
 * <body>, so the page changes never restyle the widget.
 */

/* ================= Page adjustments ================= */

/* ---- Bigger text: zooms the page so px-based themes grow too, and layouts reflow ---- */
/* Phones and tablets get a narrower viewport instead (fitViewport() in a11y_settings.js sets
   data-cms-a11y-vp), so the theme's own phone/tablet layout is used; the zoom is for desktops. */
html.cms-a11y-text-125:not([data-cms-a11y-vp]) body { zoom: 1.25; }
html.cms-a11y-text-150:not([data-cms-a11y-vp]) body { zoom: 1.5; }
html.cms-a11y-text-200:not([data-cms-a11y-vp]) body { zoom: 2; }
/* Narrow windows: zoom shrinks the layout width (560px at 200% lays out at 280px), and content
   built for 320px and up gets cut off. Cap it so the page keeps at least 320px (WCAG 1.4.10). */
@media (max-width: 639.98px) {
    html.cms-a11y-text-200:not([data-cms-a11y-vp]) body { zoom: 1.75; }
}
@media (max-width: 559.98px) {
    html:is(.cms-a11y-text-150, .cms-a11y-text-200):not([data-cms-a11y-vp]) body { zoom: 1.5; }
}
@media (max-width: 479.98px) {
    html:is(.cms-a11y-text-125, .cms-a11y-text-150, .cms-a11y-text-200):not([data-cms-a11y-vp]) body { zoom: 1.25; }
}
@media (max-width: 399.98px) {
    html:is(.cms-a11y-text-125, .cms-a11y-text-150, .cms-a11y-text-200):not([data-cms-a11y-vp]) body { zoom: 1.1; }
}
@media (max-width: 351.98px) {
    html:is(.cms-a11y-text-125, .cms-a11y-text-150, .cms-a11y-text-200):not([data-cms-a11y-vp]) body { zoom: 1; }
}
/* The narrower viewport scales everything, the floating button too: keep it at its usual size so
   it does not cover the page. --cms-a11y-vp-scale is set with the viewport. */
html[data-cms-a11y-vp] .cms-a11y-fab { zoom: calc(1 / var(--cms-a11y-vp-scale, 1)); }

/* Theme CSS often uses class-level !important colours (checkout fields, tip cards), which beat a
   plain class rule, and some even target an id (input#shipping_phone). The :not(#cms-a11y…) parts add id-level weight so the contrast modes always win:
   two ids for the page-wide rule, three for links and fields so they beat the page-wide rule. */

/* a11y_tools.js reads each element's original background (with .cms-a11y-scan lifting these
   rules for an instant) and marks it, so the modes keep the page's layering:
   - .cms-a11y-bgimg  a photo used as a CSS background: kept, under a dark/light veil;
   - .cms-a11y-icon   a small background-image icon (48px or less): recoloured, never veiled;
   - .cms-a11y-overlay a positioned overlay with a gradient: keeps the gradient (with .cms-a11y-clear);
   - .cms-a11y-clear  was transparent (e.g. a text overlay on a product photo): stays transparent,
                      so the photo underneath still shows;
   - .cms-a11y-tint   was semi-transparent: becomes a dark/light tint of the same kind;
   - anything else    had a solid colour: becomes solid black / white.
   Before the first scan (one frame) everything is solid, which is the safe fallback. */

/* ---- Contrast: dark (white on black, yellow link text) ---- */
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(.cms-a11y-scan):not(#cms-a11y):not(#cms-a11y-2) body,
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(.cms-a11y-scan):not(#cms-a11y):not(#cms-a11y-2) body *:not(img):not(video):not(picture):not(svg):not(svg *):not(.cms-a11y-clear):not(.cms-a11y-tint) {
    background-color: #000 !important;
}
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(.cms-a11y-scan):not(#cms-a11y):not(#cms-a11y-2) body .cms-a11y-tint {
    background-color: rgba(0, 0, 0, 0.6) !important;
}
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(#cms-a11y):not(#cms-a11y-2) body,
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(#cms-a11y):not(#cms-a11y-2) body *:not(img):not(video):not(picture):not(svg):not(svg *) {
    color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
/* Only the link's own text turns yellow; a card that is one big link keeps white text inside. */
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body a {
    color: #ffeb3b !important;
}
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body .cms-a11y-bgimg {
    box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.62) !important;
}
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body ::placeholder {
    color: #d1d5db !important;
    opacity: 1;
}

/* ---- Contrast: light (black on white, dark blue link text) ---- */
html.cms-a11y-contrast-light:not(.cms-a11y-scan):not(#cms-a11y):not(#cms-a11y-2) body,
html.cms-a11y-contrast-light:not(.cms-a11y-scan):not(#cms-a11y):not(#cms-a11y-2) body *:not(img):not(video):not(picture):not(svg):not(svg *):not(.cms-a11y-clear):not(.cms-a11y-tint) {
    background-color: #fff !important;
}
html.cms-a11y-contrast-light:not(.cms-a11y-scan):not(#cms-a11y):not(#cms-a11y-2) body .cms-a11y-tint {
    background-color: rgba(255, 255, 255, 0.75) !important;
}
html.cms-a11y-contrast-light:not(#cms-a11y):not(#cms-a11y-2) body,
html.cms-a11y-contrast-light:not(#cms-a11y):not(#cms-a11y-2) body *:not(img):not(video):not(picture):not(svg):not(svg *) {
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
html.cms-a11y-contrast-light:not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body a {
    color: #0b3d91 !important;
}
html.cms-a11y-contrast-light:not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body .cms-a11y-bgimg {
    box-shadow: inset 0 0 0 100vmax rgba(255, 255, 255, 0.78) !important;
}
html.cms-a11y-contrast-light:not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body ::placeholder {
    color: #4b4b4b !important;
    opacity: 1;
}

/* Both modes: decorative background images go, except photos (veiled above), icons (recoloured
   below) and the gradients of positioned overlays, which keep text on photos readable. */
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark, .cms-a11y-contrast-light):not(.cms-a11y-scan):not(#cms-a11y):not(#cms-a11y-2) body *:not(.cms-a11y-bgimg):not(.cms-a11y-icon):not(.cms-a11y-overlay) {
    background-image: none !important;
}
/* .cms-a11y-icon: a small background-image icon (admin sidebar, buttons). Its box stays clear and
   the picture becomes one solid colour, the mode's text colour, so it shows on the new background. */
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark, .cms-a11y-contrast-light):not(.cms-a11y-scan):not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body .cms-a11y-icon {
    background-color: transparent !important;
    box-shadow: none !important;
}
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(.cms-a11y-scan) body .cms-a11y-icon {
    filter: brightness(0) invert(1) !important;
}
html.cms-a11y-contrast-light:not(.cms-a11y-scan) body .cms-a11y-icon {
    filter: brightness(0) !important;
}
/* Borders: only ones the design shows get recoloured. .cms-a11y-noborder (marked by the scan) had
   no visible border, e.g. a borderless input inside its field box or a hidden divider, and stays so. */
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(.cms-a11y-scan):not(#cms-a11y):not(#cms-a11y-2) body *:not(img):not(video):not(picture):not(svg):not(svg *):not(.cms-a11y-noborder) {
    border-color: #fff !important;
}
html.cms-a11y-contrast-light:not(.cms-a11y-scan):not(#cms-a11y):not(#cms-a11y-2) body *:not(img):not(video):not(picture):not(svg):not(svg *):not(.cms-a11y-noborder) {
    border-color: #000 !important;
}
/* Fields keep a border only if they had one (a borderless input inside its field box stays
   borderless); buttons always get one, so a filled button never melts into the page. */
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark, .cms-a11y-contrast-light):not(.cms-a11y-scan):not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body :is(input, select, textarea):not(.cms-a11y-noborder):not(.cms-field-inner):not([type="button"]):not([type="submit"]),
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark, .cms-a11y-contrast-light):not(.cms-a11y-scan):not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body :is(button, [role="button"], input[type="button"], input[type="submit"]) {
    border: 1px solid currentColor !important;
}

/* Keyboard focus ring in the contrast modes. The page's own ring (a #111 outline with a white halo,
   CMS_Controller head styles) loses its halo here, since the modes drop shadows, and a dark outline
   on black disappears. Dark mode gets a bright yellow ring, Light mode a black one. Highlight
   Focus keeps its own orange-and-black ring. Field boxes (.cms-field-box) carry their field's ring. */
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(.cms-a11y-focus):not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body :is(:focus-visible:not(.cms-field-inner), .cms-field-box:has(.cms-field-inner:focus-visible)) {
    outline: 3px solid #ffeb3b !important;
    outline-offset: 2px !important;
}
html.cms-a11y-contrast-light:not(.cms-a11y-focus):not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body :is(:focus-visible:not(.cms-field-inner), .cms-field-box:has(.cms-field-inner:focus-visible)) {
    outline: 3px solid #000 !important;
    outline-offset: 2px !important;
}

/* Admin sidebar logos come in two versions, picked by the admin theme (data-theme, administration.css):
   "-light" is drawn for a light background, "-dark" for a dark one. The contrast modes set the
   background themselves, so they pick the version that shows on it: Dark mode the dark-theme logo,
   Light mode the light-theme logo. */
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(#cms-a11y) body :is(.logo-sidebar-light, .platform-sidebar-logo-light) {
    display: none !important;
}
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(#cms-a11y) body :is(.logo-sidebar-dark, .platform-sidebar-logo-dark) {
    display: block !important;
}
html.cms-a11y-contrast-light:not(#cms-a11y) body :is(.logo-sidebar-dark, .platform-sidebar-logo-dark) {
    display: none !important;
}
html.cms-a11y-contrast-light:not(#cms-a11y) body :is(.logo-sidebar-light, .platform-sidebar-logo-light) {
    display: block !important;
}

/* No colour animations in the contrast modes: the page's look changes instantly, and the scan in
   a11y_tools.js reads an element's real colours rather than a value still mid-transition. */
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark, .cms-a11y-contrast-light) body *,
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark, .cms-a11y-contrast-light) body *::before,
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark, .cms-a11y-contrast-light) body *::after {
    transition: none !important;
}

/* .cms-a11y-emph: small blocks that were dark on the page (primary buttons, the selected half of
   a switch, badges). Flattening them to the page colour would hide them, so each mode inverts
   them: white with black text in Dark, black with white text in Light. */
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(.cms-a11y-scan):not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body .cms-a11y-emph {
    background-color: #fff !important;
}
html:is(.cms-a11y-contrast, .cms-a11y-contrast-dark):not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body :is(.cms-a11y-emph, .cms-a11y-emph *):not(img):not(svg *) {
    color: #000 !important;
}
html.cms-a11y-contrast-light:not(.cms-a11y-scan):not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body .cms-a11y-emph {
    background-color: #000 !important;
}
html.cms-a11y-contrast-light:not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) body :is(.cms-a11y-emph, .cms-a11y-emph *):not(img):not(svg *) {
    color: #fff !important;
}

/* ---- Saturation is a colour filter, applied by a click-through overlay with backdrop-filter
   (.cms-a11y-ui-filter, a11y_tools.js): a `filter` on body/html would make it the containing
   block of fixed headers and drawers. */
html.cms-a11y-saturation-low { --cms-a11y-f2: saturate(0.5); }
html.cms-a11y-saturation-high { --cms-a11y-f2: saturate(1.8); }
html.cms-a11y-saturation-none { --cms-a11y-f2: grayscale(1); }
.cms-a11y-ui-filter {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: none;
    pointer-events: none;
    -webkit-backdrop-filter: var(--cms-a11y-f2, saturate(1));
    backdrop-filter: var(--cms-a11y-f2, saturate(1));
}
html:is(.cms-a11y-saturation-low, .cms-a11y-saturation-high, .cms-a11y-saturation-none) .cms-a11y-ui-filter {
    display: block;
}

/* ---- Highlight links ---- */
html.cms-a11y-links body a:not(.cms-skip-link) {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
    outline: 1px dashed currentColor;
    outline-offset: 2px;
}

/* ---- Dyslexia friendly: plain letterforms; icon fonts are left alone ---- */
html.cms-a11y-font body,
html.cms-a11y-font body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.bi):not([class^="bi-"]):not([class*=" bi-"]):not(.material-icons):not(.glyphicon):not([class*="icon"]) {
    font-family: Verdana, Tahoma, Arial, sans-serif !important;
}

/* ---- Text spacing (letters and words); level 1 is the WCAG 1.4.12 value ---- */
html:is(.cms-a11y-spacing, .cms-a11y-spacing-1) body * { letter-spacing: 0.12em !important; word-spacing: 0.16em !important; }
html.cms-a11y-spacing-2 body * { letter-spacing: 0.16em !important; word-spacing: 0.24em !important; }
html.cms-a11y-spacing-3 body * { letter-spacing: 0.2em !important; word-spacing: 0.32em !important; }
html:is(.cms-a11y-spacing, .cms-a11y-spacing-1, .cms-a11y-spacing-2, .cms-a11y-spacing-3) body p { margin-bottom: 2em !important; }

/* ---- Line height ---- */
html.cms-a11y-lineHeight-1 body * { line-height: 1.5 !important; }
html.cms-a11y-lineHeight-2 body * { line-height: 1.75 !important; }
html.cms-a11y-lineHeight-3 body * { line-height: 2 !important; }

/* ---- Text align ---- */
html.cms-a11y-align-left body * { text-align: left !important; }
html.cms-a11y-align-center body * { text-align: center !important; }
html.cms-a11y-align-right body * { text-align: right !important; }

/* Bigger, wider or plainer text can make one long word wider than a phone screen; let such a
   word break instead of pushing the page sideways (1.4.10). */
html:is(.cms-a11y-text-125, .cms-a11y-text-150, .cms-a11y-text-200, .cms-a11y-font, .cms-a11y-spacing,
        .cms-a11y-spacing-1, .cms-a11y-spacing-2, .cms-a11y-spacing-3) body * {
    overflow-wrap: break-word;
}

/* ---- Big cursor (desktop only: phones and tablets have no pointer to enlarge) ---- */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    html.cms-a11y-cursor,
    html.cms-a11y-cursor * {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2.5 19 10l-6.6 1.8L9 18.5z' fill='black' stroke='white' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 8 5, auto !important;
    }
}

/* ---- Hide images (icons drawn as SVG stay, they are controls) ---- */
html.cms-a11y-hideImages body :is(img, picture, video, figure > iframe) {
    visibility: hidden !important;
}
html.cms-a11y-hideImages body * {
    background-image: none !important;
}

/* ---- Highlight focus: thick ring on any focus, mouse included ----
   The extra :not(#…) raise these above the platform's own focus ring
   (html:not(#cms-a11y) :is(a, button…):focus-visible, same weight and later in the page),
   which otherwise won and left the normal thin ring with Highlight Focus on. */
html.cms-a11y-focus:not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) :focus,
html.cms-a11y-focus:not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) [data-cms-a11y-ring] {
    outline: 4px solid #ff8a00 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 8px #000 !important;
}
/* Set by a11y_settings.js on focus: the control sits where an outside ring would be cut off
   (sidebar menus, scrolling lists, FAQ questions in a clipped box), so the ring is drawn
   inside it instead. */
html.cms-a11y-focus:not(#cms-a11y):not(#cms-a11y-2):not(#cms-a11y-3) [data-cms-a11y-ring="inset"] {
    outline-offset: -4px !important;
    box-shadow: inset 0 0 0 7px #000 !important;
}

/* ---- Pause animations ---- */
html.cms-a11y-motion *,
html.cms-a11y-motion *::before,
html.cms-a11y-motion *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
}

/* ---- Reading guide, reading mask, tooltips (elements added by a11y_tools.js) ---- */
.cms-a11y-ui-guide,
.cms-a11y-ui-mask {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 2147483100;
    display: none;
    pointer-events: none;
}
.cms-a11y-ui-guide {
    top: 0;
    height: 16px;
    background: rgba(255, 213, 0, 0.35);
    border-top: 3px solid #1a1a1a;
    border-bottom: 3px solid #1a1a1a;
}
.cms-a11y-ui-mask {
    background: rgba(0, 0, 0, 0.62);
}
.cms-a11y-ui-mask-top { top: 0; height: 35vh; }
.cms-a11y-ui-mask-bottom { top: 55vh; bottom: 0; }
html.cms-a11y-guide .cms-a11y-ui-guide,
html.cms-a11y-mask .cms-a11y-ui-mask {
    display: block;
}
.cms-a11y-ui-tip {
    position: fixed;
    z-index: 2147483200;
    display: none;
    max-width: 260px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    font: 500 13px/1.35 Poppins, Arial, sans-serif;
    pointer-events: none;
}
.cms-a11y-ui-tip.is-on {
    display: block;
}

/* Big Cursor, Reading Guide, Reading Mask and Tooltips follow the mouse, so they are desktop
   only. On phones, tablets and narrow windows their tiles are not offered, and a setting saved
   on desktop (or switched on by a profile) draws nothing. */
@media (max-width: 1024px), (hover: none), (pointer: coarse) {
    .cms-a11y-panel .cms-a11y-tile:is([data-key="cursor"], [data-key="guide"], [data-key="mask"], [data-key="tooltips"]) {
        display: none;
    }
    html.cms-a11y-guide .cms-a11y-ui-guide,
    html.cms-a11y-mask .cms-a11y-ui-mask,
    html .cms-a11y-ui-tip.is-on {
        display: none;
    }
}

/* ================= Floating button ================= */
.cms-a11y-fab {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.15s, background-color 0.15s;
}
.cms-a11y-fab:hover {
    transform: scale(1.06);
    background: #000;
}
.cms-a11y-fab svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media print {
    .cms-a11y-fab { display: none; }
}
/* Site set the button bottom-right (admin/site/configurations → Accessibility): the panel opens
   on the same side, so it never covers the button it came from. */
html[data-cms-a11y-fab="right"] .cms-a11y-fab {
    left: auto;
    right: 18px;
}
html[data-cms-a11y-fab="right"] .cms-a11y-panel {
    inset: 0 0 0 auto;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
}
/* The cookie banner and its reopen button (cookie_banner.js) also sit bottom-left: lift them
   above this button so neither covers the other's controls (WCAG 2.4.11). */
html:not([data-cms-a11y-fab="right"]) :is(.bannerContainer, .banner-opener) {
    bottom: 88px !important;
}
html:not([data-cms-a11y-fab="right"]) .bannerContainer {
    max-height: calc(100% - 108px) !important;
}

/* Small screens: a smaller button tucked into the corner covers less of the page (still 44px to
   tap), and a field or link reached with Tab is scrolled clear of it rather than hidden
   under it (2.4.11 Focus Not Obscured). */
@media (max-width: 480px), (max-height: 420px) {
    .cms-a11y-fab {
        left: 8px;
        bottom: 8px;
        width: 44px;
        height: 44px;
    }
    .cms-a11y-fab svg {
        width: 24px;
        height: 24px;
    }
    html[data-cms-a11y-fab="right"] .cms-a11y-fab {
        right: 8px;
    }
    html:has(.cms-a11y-fab) {
        scroll-padding-bottom: 64px;
    }
    html:not([data-cms-a11y-fab="right"]) :is(.bannerContainer, .banner-opener) {
        bottom: 60px !important;
    }
    html:not([data-cms-a11y-fab="right"]) .bannerContainer {
        max-height: calc(100% - 72px) !important;
    }
}

/* Admin panel pages (widget switched on for "Admin panel"): bottom-left would sit on the fixed
   admin sidebar's profile row, so the button starts just past the sidebar (230px, or 52px when
   collapsed). The button is a child of <html>, hence :has() for the collapsed flag. Phones have
   no sidebar column (administration.css), so the default 18px applies there. */
@media (min-width: 577px) {
    html[data-cms-a11y-admin]:not([data-cms-a11y-fab="right"]) .cms-a11y-fab {
        left: 248px;
    }
    html[data-cms-a11y-admin]:is([data-sidebar="collapsed"], :has([data-sidebar="collapsed"])):not([data-cms-a11y-fab="right"]) .cms-a11y-fab {
        left: 70px;
    }
}

/* ================= Side panel ================= */
.cms-a11y-panel {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(400px, 100vw);
    max-width: 100vw;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #1a1a1a;
    font: 400 14px/1.4 Poppins, Arial, sans-serif;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);
}
.cms-a11y-panel[open] {
    display: flex;
    flex-direction: column;
}
.cms-a11y-panel.is-big {
    width: min(520px, 100vw);
    font-size: 17px;
}
/* Dimmed, blurred overlay behind the open menu; a click on it closes the menu. */
.cms-a11y-panel::backdrop {
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.cms-a11y-panel svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cms-a11y-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 12px;
    background: #fff;
    color: #111;
}
.cms-a11y-top h2 {
    margin: 0;
    font-size: 1.55em;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
}
.cms-a11y-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #111;
    cursor: pointer;
    transition: background-color 0.15s;
}
.cms-a11y-x:hover {
    background: #f4f4f4;
}
.cms-a11y-panel .cms-a11y-x svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}
.cms-a11y-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 8px 20px 12px;
}
.cms-a11y-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.cms-a11y-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 0.93em;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.cms-a11y-btn:hover {
    border-color: #1a1a1a;
}
.cms-a11y-btn[aria-pressed="true"] {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* Profiles */
.cms-a11y-acc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
}
.cms-a11y-acc[aria-expanded="true"] svg {
    transform: rotate(180deg);
}
.cms-a11y-profile-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}
.cms-a11y-profile-list[hidden] {
    display: none;
}
.cms-a11y-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    font-family: inherit;
    font-size: 1em;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.cms-a11y-profile:hover {
    border-color: #1a1a1a;
}
.cms-a11y-profile[aria-pressed="true"] {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 1px #1a1a1a;
}
.cms-a11y-panel .cms-a11y-profile > svg {
    width: 22px;
    height: 22px;
    color: #1a1a1a;
}
.cms-a11y-profile-text {
    flex: 1;
    min-width: 0;
}
.cms-a11y-profile-name {
    display: block;
    font-size: 0.95em;
    font-weight: 600;
}
.cms-a11y-profile-desc {
    display: block;
    font-size: 0.85em;
    color: #6b6b6b;
}
.cms-a11y-radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #6b7280;
    border-radius: 50%;
    background: #fff;
}
.cms-a11y-profile[aria-pressed="true"] .cms-a11y-radio {
    border-color: #1a1a1a;
    background: #1a1a1a;
    box-shadow: inset 0 0 0 4px #fff;
}

/* Adjustment tiles */
/* Section title with a hairline running to the edge, like "Customize your order". */
.cms-a11y-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 10px;
    font-size: 0.93em;
    font-weight: 700;
    color: #111;
}
.cms-a11y-sub::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eeeeee;
}
.cms-a11y-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.cms-a11y-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 100px;
    padding: 10px 6px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 0.93em;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.cms-a11y-tile:hover {
    border-color: #1a1a1a;
}
.cms-a11y-panel .cms-a11y-tile svg {
    width: 24px;
    height: 24px;
}
.cms-a11y-tile[aria-pressed="true"] {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}
.cms-a11y-tile-state {
    font-size: 0.8em;
    font-weight: 600;
}
.cms-a11y-tile-state:empty {
    display: none;
}
.cms-a11y-dots {
    display: flex;
    gap: 3px;
}
.cms-a11y-dots i {
    width: 14px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.3;
}
.cms-a11y-dots i.is-on {
    opacity: 1;
}

/* Page structure view */
.cms-a11y-view[hidden] {
    display: none;
}
.cms-a11y-view-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.cms-a11y-view-head h3 {
    margin: 0;
    font-size: 1.05em;
    font-weight: 600;
}
.cms-a11y-structure {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
/* Page Structure tabs: Headings / Landmarks / Links (a11y_settings.js showStructure). */
.cms-a11y-tabs {
    display: flex;
    gap: 4px;
    padding: 6px;
    border-bottom: 1px solid #eeeeee;
    background: #fafafa;
}
.cms-a11y-tab {
    flex: 1;
    min-height: 34px;
    padding: 6px 8px;
    border: 0;
    border-radius: 7px;
    background: none;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 0.86em;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.cms-a11y-tab:hover {
    background: #efefef;
}
.cms-a11y-tab[aria-selected="true"] {
    background: #1a1a1a;
    color: #fff;
}
.cms-a11y-tabpanel[hidden] {
    display: none;
}
.cms-a11y-node {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid #eeeeee;
    background: none;
    color: inherit;
    font-family: inherit;
    font-size: 0.93em;
    text-align: left;
    cursor: pointer;
}
.cms-a11y-node:hover {
    background: #fafafa;
}
.cms-a11y-node-tag {
    flex-shrink: 0;
    min-width: 30px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #eeeeee;
    font-size: 0.78em;
    font-weight: 700;
    text-align: center;
}
.cms-a11y-empty {
    margin: 0;
    padding: 10px 12px;
    color: #6b6b6b;
}
.cms-a11y-bottom {
    padding: 12px 16px;
    border-top: 1px solid #eeeeee;
    background: #fff;
    text-align: center;
}
.cms-a11y-bottom a {
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: underline;
}
