/* The structure the widgets need, and nothing else.

   In @layer haya-defaults beside pb-behaviors.css, for the reason CMS-L11
   recorded: an unlayered rule beats a layered one whatever the load order, so
   a sheet outside the layers would quietly outrank both the site's tokens and
   the styles an author wrote in the panel.

   That layering is the whole contract here. Nothing in this file decides a
   colour, a font, a spacing or a radius that the theme has an opinion about —
   it decides what is a row and what is a column, what scrolls and what wraps.
   Everything visible is a token the site owns or a declaration the style
   panel can overrule.

   What is left is the data widgets' structure: the shop's, the account
   area's, the credit line and the form. The coded content widgets — tabs,
   accordion, modal and the rest — are gone (CMS-L89); a converted block
   carries the rules it needs in its own scoped CSS, and a store design
   brings its own. */

@layer haya-defaults {

    /* ── add to cart, when the product cannot be bought (CMS-L38-5) ─────── */

    /* The basket form's status line exists to be filled in (CMS-L89 BR-01);
       display below would otherwise beat the hidden attribute. */
    .product-unavailable[hidden] {
        display: none;
    }

    .product-unavailable {
        display: inline-block;
        margin: 0;
        padding: 0.6em 1em;
        border-radius: var(--radius-md, 8px);
        background: color-mix(in srgb, currentColor 8%, transparent);
        font-weight: 600;
    }

    /* The cart menu (CMS-L58). The control's own look travels with the
       storefront component (CartMenu.razor.css); this only keeps the widget
       box from stretching the trigger across a header row. */
    .pb-cart-menu {
        display: inline-flex;
        align-items: center;
    }

    /* The account menu (CMS-L30). Structure only, like every rule in this sheet:
       what it looks like is the theme's and the author's, and pb-design.css puts
       the tokens on it. The sign-out button is a form control talked back into
       sitting in a row of links. */
    .pb-account-menu {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .pb-account-menu__out {
        display: flex;
        margin: 0;
    }

    .pb-account-menu__out button {
        padding: 0;
        border: 0;
        background: none;
        font: inherit;
        color: inherit;
        cursor: pointer;
    }

    /* ── The account menu ─────────────────────────────────────────────────
       Inline is a header's row; stacked is a dashboard's sidebar. The rules
       are structure and the colours are tokens, so a shop that picked its
       own palette keeps its sidebar in it. */

    .pb-account-menu__link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 8px;
        border: 0;
        border-radius: var(--radius-sm);
        background: none;
        font: inherit;
        color: inherit;
        text-decoration: none;
        cursor: pointer;
    }

        .pb-account-menu__link:hover {
            background: var(--surface-muted, rgba(0, 0, 0, .04));
        }

        /* Where the reader is. A colour alone would leave this invisible to
           anyone who cannot see it, which is why the markup also carries
           aria-current. */
        .pb-account-menu__link--current {
            background: var(--surface-muted, rgba(0, 0, 0, .06));
            font-weight: 600;
            color: var(--color-text-link);
        }

    .pb-account-menu--stacked {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        /* The inline rule above wraps, which is right for a header's row and
           wrong here: a *column* container that wraps lays its items out in
           columns, so instead of an over-wide item shrinking, the container
           grows to fit it. That is what put a long e-mail address 33px
           outside the sidebar. */
        flex-wrap: nowrap;
        gap: 2px;
    }

        .pb-account-menu--stacked .pb-account-menu__link {
            justify-content: flex-start;
            width: 100%;
            padding: 10px 12px;
        }

        .pb-account-menu--stacked .pb-account-menu__out {
            display: block;
        }

    .pb-account-menu__who {
        display: flex;
        align-items: center;
        gap: 10px;
        /* Without this the block is as wide as the longest word in it and
           pushes out of the sidebar: a flex item's default min-width is its
           content, so the ellipsis below never gets a chance to apply. An
           e-mail address as a display name is the ordinary case, not the
           edge one — somebody who has not set a name yet. */
        min-width: 0;
        padding: 4px 4px 12px;
        margin-block-end: 8px;
        border-block-end: 1px solid var(--color-border);
    }

    .pb-account-menu__avatar {
        display: grid;
        /* It is a circle at a fixed size, so it must not be squeezed when the
           name beside it is long. */
        flex: 0 0 auto;
        place-items: center;
        inline-size: 36px;
        block-size: 36px;
        border-radius: 50%;
        background: var(--surface-muted, #eef4ff);
        color: var(--color-text-link);
        font-weight: 600;
    }

    .pb-account-menu__name {
        font-size: 14px;
        font-weight: 600;
        /* A long name shortens rather than pushing the sidebar wider.
           `min-width: 0` on the row above is not enough on its own: a flex
           item's floor is its content, and the name is the item, so the floor
           has to be lifted here too. `flex: 1 1 0` rather than `auto` for the
           same reason — an auto basis is the content's width, which is the
           thing being contained. Measured, not guessed: it was 34px outside
           the sidebar, spilling past its left edge. */
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ── site credit (SiteCredit) ───────────────────────────────────────────── */

@layer haya-defaults {
    .pb-site-credit {
        margin: 0;
        font-size: 0.8125rem;
        color: var(--color-text-muted, #6b7280);
    }

    .pb-site-credit a,
    .pb-site-credit-name {
        color: inherit;
        font-weight: 600;
        text-decoration: none;
    }

    .pb-site-credit a:hover {
        text-decoration: underline;
    }

    .store-fallback-credit {
        padding-block: 4px;
        padding-inline: 16px;
        background-color: var(--pb-credit-background, transparent);
        color: var(--pb-credit-color, inherit);
        text-align: center;
        line-height: 1.4;
    }
}

/* Outside the layers on purpose, and the one rule in this file that is: an
   unlayered !important outranks everything an author can write, because the
   style panel and the agent cannot emit !important at all. Only the
   properties that would make the line vanish are held; how it looks stays
   the author's. */
[data-pb-credit] {
    visibility: visible !important;
    opacity: 1 !important;
    clip-path: none !important;
    content-visibility: visible !important;
}

/* The form widget (CMS-L76-1): a site form from the Forms module. Theme
   tokens only, in the defaults layer, so the style panel and the page's own
   CSS always win. */
@layer haya-defaults {
    .pb-form-body {
        display: grid;
        gap: 1rem;
    }

    .pb-form-field {
        display: grid;
        gap: 0.35rem;
    }

    .pb-form-label {
        font-weight: var(--font-weight-h3, 600);
        color: var(--color-text-dark);
    }

    .pb-form-required {
        color: var(--color-error);
    }

    .pb-form-input {
        width: 100%;
        box-sizing: border-box;
        padding: 0.65rem 0.8rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        background: var(--color-bg-card);
        color: var(--color-text-dark);
        font: inherit;
    }

    .pb-form-input:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 1px;
    }

    .pb-form-field.is-invalid .pb-form-input {
        border-color: var(--color-error);
    }

    .pb-form-check {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        cursor: pointer;
    }

    .pb-form-help {
        color: var(--color-text-muted);
    }

    .pb-form-error {
        color: var(--color-error);
    }

    .pb-form-error:empty {
        display: none;
    }

    .pb-form-message:empty {
        display: none;
    }

    .pb-form-message--sent {
        padding: 1rem;
        border: 1px solid var(--color-primary);
        border-radius: var(--radius-md);
    }

    .pb-form-message--error,
    .pb-form-message--closed {
        color: var(--color-error);
    }

    .pb-form-captcha-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .pb-form-captcha-image svg {
        display: block;
        max-width: 100%;
        height: auto;
        border-radius: var(--radius-md);
    }

    .pb-form-captcha-refresh {
        background: none;
        border: 0;
        padding: 0;
        color: var(--color-text-link);
        text-decoration: underline;
        cursor: pointer;
        font: inherit;
    }

    /* Off-screen, not display:none: some bots skip hidden fields. */
    .pb-form-hp {
        position: absolute;
        inset-inline-start: -10000px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    .pb-form-empty {
        padding: 1rem;
        border: 1px dashed var(--color-border);
        border-radius: var(--radius-md);
        color: var(--color-text-muted);
        text-align: center;
    }

    .pb-form-submit {
        justify-self: start;
    }

    /* layout=inline: the field(s) and the button on one row, wrapping on a
       narrow screen. Messages and the captcha keep a full row of their own;
       order puts the button before the messages whatever the markup order. */
    .pb-form-body--inline {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
    }

    .pb-form-body--inline > .pb-form-field {
        flex: 1 1 14rem;
        min-width: 0;
    }

    /* Help and errors hang under their own field, so with one the bottom edge
       is no longer the input's: line the tops up, and the button with the
       input under its label. */
    .pb-form-body--inline:has(> .pb-form-field > :is(.pb-form-help, .pb-form-error:not(:empty))) {
        align-items: flex-start;
    }

    .pb-form-body--inline:has(> .pb-form-field > :is(.pb-form-help, .pb-form-error:not(:empty))) > .pb-form-submit {
        margin-block-start: 1.95rem;
    }

    /* An image with no file shows "No image available" (2026-11-30): the
       picture fills the box the author gave the image, cropped, never
       stretched; the grey behind it covers the moment before it is drawn. */
    img.is-placeholder {
        object-fit: cover;
        background: #f1f3f5;
    }

    /* A field the author put on a row of its own (user decision,
       2026-11-30): the whole row of the inline layout, and every column of
       a grid the form part is given. */
    .pb-form-body > .pb-form-field--full {
        grid-column: 1 / -1;
        flex-basis: 100%;
    }

    .pb-form-body--inline > .pb-form-captcha {
        flex-basis: 100%;
    }

    .pb-form-body--inline > .pb-form-submit {
        order: 1;
        flex: none;
    }

    .pb-form-body--inline > .pb-form-message {
        order: 2;
        flex: 1 0 100%;
    }

    /* layout=joined (one one-line field, no captcha; see FormWidgets.LayoutClass):
       the button sits inside the field's box as one pill. The field wrapper
       dissolves into the form's grid, so the input and the button share row 1
       and the pill itself is the form's ::before, drawn behind both. Help,
       error and messages take full rows below. The label stays for screen
       readers only.

       The declarations that hold the pill together are important: an author
       (and the assistant) styles these very parts, and a field's own grid or
       an input's own border would take it apart. The pill's look is read from
       --form-pill-background, --form-pill-border and --form-pill-radius,
       which the form part can set. */
    .pb-form-body--joined {
        position: relative;
        isolation: isolate;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) fit-content(55%) !important;
        align-items: stretch !important;
        column-gap: 0 !important;
        row-gap: 0.35rem;
    }

    .pb-form-body--joined::before {
        content: "";
        grid-area: 1 / 1 / 2 / -1;
        border: var(--form-pill-border, 1px solid var(--color-border));
        border-radius: var(--form-pill-radius, 999px);
        background: var(--form-pill-background, var(--color-bg-card));
    }

    .pb-form-body--joined > .pb-form-field {
        display: contents !important;
    }

    .pb-form-body--joined > .pb-form-field > .pb-form-label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        margin: -1px !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip-path: inset(50%) !important;
        white-space: nowrap !important;
    }

    .pb-form-body--joined > .pb-form-field > .pb-form-input {
        grid-area: 1 / 1 !important;
        position: relative;
        z-index: 1;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding-inline: 1.1rem 0.5rem;
    }

    .pb-form-body--joined > .pb-form-submit {
        grid-area: 1 / 2 !important;
        position: relative;
        z-index: 1;
        width: auto !important;
        min-width: 0 !important;
        justify-self: stretch !important;
        margin: 0.3rem !important;
        border-radius: var(--form-pill-radius, 999px);
    }

    .pb-form-body--joined > .pb-form-field > :is(.pb-form-help, .pb-form-error),
    .pb-form-body--joined > .pb-form-message {
        grid-column: 1 / -1;
        padding-inline: 1.1rem;
    }

    /* One focus ring around the whole pill, not the bare input inside it. */
    @supports selector(:has(*)) {
        .pb-form-body--joined > .pb-form-field > .pb-form-input:focus-visible {
            outline: none;
        }

        .pb-form-body--joined:has(.pb-form-input:focus-visible, .pb-form-submit:focus-visible)::before {
            outline: 2px solid var(--color-primary);
            outline-offset: 1px;
        }

        .pb-form-body--joined:has(.pb-form-field.is-invalid)::before {
            border-color: var(--color-error);
        }
    }
}

@layer haya-defaults {
    /* Dynamic carousel (CMS-L107). The widget writes every device's values as
       variables and this picks one set. A value it does not write reads as the
       one a carousel had before that setting existed. */
    .dynamic-carousel {
        --dc-columns: var(--dc-mobile);
        --dc-gap: var(--dc-gap-mobile, var(--dc-gap-preset));
        --dc-peek: var(--dc-peek-mobile, 0);
        --dc-peek-gap: var(--dc-peek-gap-mobile, 0);
        --dc-align: var(--dc-align-mobile, stretch);
        --dc-item: var(--dc-item-mobile, block);
        --dc-arrows: var(--dc-arrows-mobile, flex);
        --dc-arrows-rest: var(--dc-arrows-rest-mobile, 1);
        --dc-indicator: var(--dc-indicator-mobile, flex);
        --dc-gap-preset: .875rem;
        --dc-control-size: 2.25rem;
        min-width: 0;
    }

    /* The builder's own device floors (DevicePreview, Breakpoints): a canvas
       that calls itself a tablet shows the tablet's columns. */
    @media (min-width: 640px) {
        .dynamic-carousel:not([data-canvas]) { --dc-columns: var(--dc-tablet);
            --dc-gap: var(--dc-gap-tablet, var(--dc-gap-preset));
            --dc-peek: var(--dc-peek-tablet, 0);
            --dc-peek-gap: var(--dc-peek-gap-tablet, 0);
            --dc-align: var(--dc-align-tablet, stretch);
            --dc-item: var(--dc-item-tablet, block);
            --dc-arrows: var(--dc-arrows-tablet, flex);
            --dc-arrows-rest: var(--dc-arrows-rest-tablet, 1);
            --dc-indicator: var(--dc-indicator-tablet, flex);
        }
    }

    @media (min-width: 768px) {
        .dynamic-carousel:not([data-canvas]) { --dc-columns: var(--dc-desktop);
            --dc-gap: var(--dc-gap-desktop, var(--dc-gap-preset));
            --dc-peek: var(--dc-peek-desktop, 0);
            --dc-peek-gap: var(--dc-peek-gap-desktop, 0);
            --dc-align: var(--dc-align-desktop, stretch);
            --dc-item: var(--dc-item-desktop, block);
            --dc-arrows: var(--dc-arrows-desktop, flex);
            --dc-arrows-rest: var(--dc-arrows-rest-desktop, 1);
            --dc-indicator: var(--dc-indicator-desktop, flex);
        }
    }

    @container pbcanvas (min-width: 640px) {
        .dynamic-carousel[data-canvas] { --dc-columns: var(--dc-tablet);
            --dc-gap: var(--dc-gap-tablet, var(--dc-gap-preset));
            --dc-peek: var(--dc-peek-tablet, 0);
            --dc-peek-gap: var(--dc-peek-gap-tablet, 0);
            --dc-align: var(--dc-align-tablet, stretch);
            --dc-item: var(--dc-item-tablet, block);
            --dc-arrows: var(--dc-arrows-tablet, flex);
            --dc-arrows-rest: var(--dc-arrows-rest-tablet, 1);
            --dc-indicator: var(--dc-indicator-tablet, flex);
        }
    }

    @container pbcanvas (min-width: 768px) {
        .dynamic-carousel[data-canvas] { --dc-columns: var(--dc-desktop);
            --dc-gap: var(--dc-gap-desktop, var(--dc-gap-preset));
            --dc-peek: var(--dc-peek-desktop, 0);
            --dc-peek-gap: var(--dc-peek-gap-desktop, 0);
            --dc-align: var(--dc-align-desktop, stretch);
            --dc-item: var(--dc-item-desktop, block);
            --dc-arrows: var(--dc-arrows-desktop, flex);
            --dc-arrows-rest: var(--dc-arrows-rest-desktop, 1);
            --dc-indicator: var(--dc-indicator-desktop, flex);
        }
    }

    .dynamic-carousel[data-preset="compact"] { --dc-gap-preset: .5rem; }
    .dynamic-carousel[data-preset="minimal"] { --dc-gap-preset: .375rem; }

    .dynamic-carousel__viewport {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        min-width: 0;
    }

    .dynamic-carousel__track {
        display: grid;
        gap: var(--dc-gap);
        grid-template-columns: repeat(var(--dc-columns), minmax(0, 1fr));
        align-items: var(--dc-align);
    }

    .dynamic-carousel__track[data-sliding="true"] {
        display: flex;
        --dc-slide-width: calc((100% - (var(--dc-columns) - 1 + var(--dc-peek-gap)) * var(--dc-gap)) / (var(--dc-columns) + var(--dc-peek)));
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    /* A scrolling box cuts what leaves it: the room above and below is for a
       card's shadow, and taken back so nothing on the page moves. It lies over
       what stands next to the slider, so it takes no pointer; the cards do. A
       slider with a bar has none: the bar needs the pointer. */
    @media (scripting: enabled) {
        .dynamic-carousel__track[data-scrollbar="hidden"] {
            padding-block: 1rem;
            margin-block: -1rem;
            pointer-events: none;
        }

        .dynamic-carousel__track[data-scrollbar="hidden"] > .dynamic-carousel__item { pointer-events: auto; }
    }

    .dynamic-carousel__track[data-scrollbar="hidden"]::-webkit-scrollbar { display: none; }
    .dynamic-carousel__track[data-scrollbar="thin"] { scrollbar-width: thin; }
    .dynamic-carousel__track[data-sliding="true"] :focus-visible { outline-offset: -2px; }

    .dynamic-carousel__track[data-moving] { scroll-snap-type: none; }
    .dynamic-carousel__track[data-dragging] { cursor: grabbing; user-select: none; }

    /* Without a script nothing but the bar moves the cards for a mouse, and
       the controls would do nothing. */
    @media (scripting: none) {
        .dynamic-carousel__track[data-sliding="true"] { scrollbar-width: auto; }
        .dynamic-carousel__track[data-scrollbar="hidden"]::-webkit-scrollbar { display: block; }
        .dynamic-carousel .dynamic-carousel__arrows,
        .dynamic-carousel .dynamic-carousel__indicator { display: none; }
    }

    .dynamic-carousel__item {
        display: var(--dc-item);
        min-width: 0;
        scroll-snap-align: start;
    }

    .dynamic-carousel__track[data-sliding="true"] > .dynamic-carousel__item {
        flex: 0 0 var(--dc-slide-width);
    }

    [data-center="true"] .dynamic-carousel__track:not([data-looping])::before,
    [data-center="true"] .dynamic-carousel__track:not([data-looping])::after {
        content: "";
        flex: 0 0 max(0px, calc((100% - var(--dc-slide-width)) / 2 - var(--dc-gap)));
    }

    [data-center="true"] .dynamic-carousel__track { column-gap: min(var(--dc-gap), calc((100% - var(--dc-slide-width)) / 2)); }

    [data-center="true"] .dynamic-carousel__item { scroll-snap-align: center; }

    .dynamic-carousel__card {
        display: grid;
        align-content: start;
        gap: .5rem;
        text-decoration: none;
        color: inherit;
        height: 100%;
    }

    .dynamic-carousel__card img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: .5rem;
    }

    [data-preset="compact"] .dynamic-carousel__card img { aspect-ratio: 16 / 9; }
    [data-preset="minimal"] .dynamic-carousel__card img { aspect-ratio: 1; object-fit: contain; }

    /* A product's picture is a fixed 300px in ProductCard's own sheet, which
       sits in this layer too: these win on specificity, inside the carousel
       only. A clipped box keeps its ratio whatever the picture inside it. */
    [data-preset="compact"] .dynamic-carousel__item .product-card-img {
        height: auto;
        min-height: 0;
        overflow: hidden;
        aspect-ratio: 16 / 9;
    }

    [data-preset="compact"] .dynamic-carousel__item .product-card-title { padding: .5rem .5rem .25rem; font-size: .875rem; }
    [data-preset="compact"] .dynamic-carousel__item .product-card-info { padding: 0 .5rem .5rem; }

    [data-preset="minimal"] .dynamic-carousel__item .product-card { box-shadow: none; border-color: transparent; }

    [data-preset="minimal"] .dynamic-carousel__item .product-card-img {
        height: auto;
        min-height: 0;
        overflow: hidden;
        aspect-ratio: 1;
    }

    /* A product with no picture keeps its tile, or the card opens with a hole. */
    [data-preset="minimal"] .dynamic-carousel__item .product-card-img:has(img) { background: transparent; }

    [data-preset="minimal"] .dynamic-carousel__item .product-card-img img { object-fit: contain; }
    [data-preset="minimal"] .dynamic-carousel__item .product-card-title { padding: .5rem 0 0; font-size: .875rem; }
    [data-preset="minimal"] .dynamic-carousel__item .product-card-info { padding: .25rem 0 0; }

    .dynamic-carousel__card p { margin: 0; }

    .dynamic-carousel__arrows,
    .dynamic-carousel__indicator {
        justify-content: center;
        gap: .5rem;
        margin-block-start: .75rem;
        flex-wrap: wrap;
    }

    .dynamic-carousel__arrows { display: var(--dc-arrows); }
    .dynamic-carousel__indicator { display: var(--dc-indicator); align-items: center; }

    .dynamic-carousel__dots {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: .5rem;
    }

    .dynamic-carousel__arrow,
    .dynamic-carousel__play,
    .dynamic-carousel__dot {
        font: inherit;
        color: inherit;
        background: transparent;
        border: 1px solid currentColor;
        border-radius: 2rem;
        cursor: pointer;
    }

    .dynamic-carousel__arrow,
    .dynamic-carousel__play {
        display: inline-grid;
        place-items: center;
        padding: 0;
        min-inline-size: var(--dc-control-size);
        min-block-size: var(--dc-control-size);
    }

    .dynamic-carousel__icon {
        display: block;
        inline-size: 1.25rem;
        block-size: 1.25rem;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        pointer-events: none;
    }

    /* An icon of the author's: its size is the part's font size. */
    .dynamic-carousel__icon--own {
        display: inline-grid;
        place-items: center;
        inline-size: auto;
        block-size: auto;
        font-size: 1.25rem;
        line-height: 1;
    }

    .dynamic-carousel__icon--own > * { inline-size: 1em; block-size: 1em; }

    /* The drawings are left-to-right and no browser mirrors a path by itself,
       so one flip is right for every icon. Play and pause do not point at a
       side of the page and stay as they are. */
    .dynamic-carousel__arrow:dir(rtl) .dynamic-carousel__icon { transform: scaleX(-1); }
    .dynamic-carousel__arrow .dynamic-carousel__icon[data-mirror] { transform: scaleX(-1); }
    .dynamic-carousel__arrow:dir(rtl) .dynamic-carousel__icon[data-mirror] { transform: none; }

    /* At the sides, over the cards or beside them. The row lets clicks through
       to the cards; its buttons take theirs. */
    .dynamic-carousel[data-arrows-place="inside"] .dynamic-carousel__arrows,
    .dynamic-carousel[data-arrows-place="outside"] .dynamic-carousel__arrows {
        position: absolute;
        inset: 0;
        z-index: 2;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        margin: 0;
        pointer-events: none;
    }

    .dynamic-carousel[data-arrows-place="inside"] .dynamic-carousel__arrows { padding-inline: .5rem; }
    .dynamic-carousel[data-arrows-place="outside"] .dynamic-carousel__viewport {
        padding-inline: calc(var(--dc-control-size) + .5rem);
    }

    .dynamic-carousel[data-arrows-place="inside"] .dynamic-carousel__arrow,
    .dynamic-carousel[data-arrows-place="outside"] .dynamic-carousel__arrow { pointer-events: auto; }

    .dynamic-carousel[data-arrows-place="inside"] .dynamic-carousel__arrow {
        color: #1f2430;
        background: rgb(255 255 255 / 92%);
        border-color: rgb(20 22 28 / 10%);
        box-shadow: 0 2px 8px rgb(20 22 28 / 16%);
    }

    .dynamic-carousel[data-arrows-place^="above"] .dynamic-carousel__arrows { margin-block: 0 .75rem; }
    .dynamic-carousel[data-arrows-place="above-start"] .dynamic-carousel__arrows { justify-content: flex-start; }
    .dynamic-carousel[data-arrows-place="above-end"] .dynamic-carousel__arrows { justify-content: flex-end; }

    /* On hover, where there is a pointer to hover with. A touch screen has the
       arrows as they are; the keyboard brings them up; the canvas shows what
       the author is editing. */
    @media (hover: hover) and (pointer: fine) {
        .dynamic-carousel:not([data-editing]) .dynamic-carousel__arrow { opacity: var(--dc-arrows-rest); transition: opacity .2s; }
        .dynamic-carousel:not([data-editing]):hover .dynamic-carousel__arrow,
        .dynamic-carousel:not([data-editing]):focus-within .dynamic-carousel__arrow { opacity: 1; }
    }

    .dynamic-carousel[data-indicator-place="over"] .dynamic-carousel__indicator {
        position: absolute;
        inset-inline: 0;
        inset-block-end: .75rem;
        z-index: 2;
        margin: 0;
        pointer-events: none;
    }

    .dynamic-carousel[data-indicator-place="over"] .dynamic-carousel__indicator > * { pointer-events: auto; }

    .dynamic-carousel__play { position: relative; z-index: 1; display: grid; margin-inline-start: auto; margin-block-end: .5rem; }
    .dynamic-carousel__play[data-state="playing"] [data-icon="play"],
    .dynamic-carousel__play[data-state="paused"] [data-icon="pause"] { display: none; }

    /* Nothing plays for a visitor who asked for less motion. */
    @media (prefers-reduced-motion: reduce) {
        .dynamic-carousel .dynamic-carousel__play { display: none; }
    }

    .dynamic-carousel .dynamic-carousel__arrow:disabled { opacity: .35; cursor: default; }

    /* The dot is as large as it looks; the place to press it is larger. */
    .dynamic-carousel__dot { position: relative; padding: 0; inline-size: .85rem; block-size: .85rem; }
    .dynamic-carousel__dot::after { content: ""; position: absolute; inset: 50% auto auto 50%; inline-size: max(100%, 24px); block-size: max(100%, 24px); translate: -50% -50%; }
    .dynamic-carousel__dot[aria-current="true"] { background: currentColor; }

    [data-kind="bars"] .dynamic-carousel__dot { inline-size: 1.75rem; block-size: .25rem; border: 0; background: color-mix(in srgb, currentColor 25%, transparent); }
    [data-kind="bars"] .dynamic-carousel__dot[aria-current="true"] { background: currentColor; }

    .dynamic-carousel__counter { font-variant-numeric: tabular-nums; unicode-bidi: isolate; direction: ltr; }

    .dynamic-carousel__progress {
        display: block;
        flex: 1;
        max-inline-size: 15rem;
        block-size: .25rem;
        border-radius: 2rem;
        overflow: hidden;
        background: color-mix(in srgb, currentColor 20%, transparent);
    }

    .dynamic-carousel__progress-fill {
        display: block;
        block-size: 100%;
        inline-size: calc(var(--at, 0) * 100%);
        border-radius: inherit;
        background: currentColor;
        transition: inline-size .2s;
    }

    .dynamic-carousel [hidden] { display: none; }

    /* The language switcher's own look, on the widget's element: an author's
       style of the widget replaces it and the languages inherit the result. */
    .pb-language-switcher { font-size: 13px; line-height: 20px; color: #3d3f52; }
}

@layer haya-defaults {
    /* The site's menu (CMS-L116). The widget writes every device's display as
       variables (SiteNav.StyleVariables) and this picks one device's set by the
       width it is drawn in: the window on the shop, the device frame in the
       builder — the carousel's arrangement (CMS-L107). Mobile first: a value
       the widget does not write reads as the phone's default, the button. */
    .pb-nav {
        --nv-show: var(--nv-show-mobile, flex);
        --nv-row: var(--nv-row-mobile, none);
        --nv-toggle: var(--nv-toggle-mobile, inline-flex);
        --nv-auto: var(--nv-auto-mobile, 0);
        display: var(--nv-show);
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        position: relative;
    }

    @media (min-width: 640px) {
        .pb-nav:not([data-canvas]) {
            --nv-show: var(--nv-show-tablet, flex);
            --nv-row: var(--nv-row-tablet, none);
            --nv-toggle: var(--nv-toggle-tablet, inline-flex);
            --nv-auto: var(--nv-auto-tablet, 0);
        }
    }

    @media (min-width: 768px) {
        .pb-nav:not([data-canvas]) {
            --nv-show: var(--nv-show-desktop, flex);
            --nv-row: var(--nv-row-desktop, flex);
            --nv-toggle: var(--nv-toggle-desktop, none);
            --nv-auto: var(--nv-auto-desktop, 1);
        }
    }

    @container pbcanvas (min-width: 640px) {
        .pb-nav[data-canvas] {
            --nv-show: var(--nv-show-tablet, flex);
            --nv-row: var(--nv-row-tablet, none);
            --nv-toggle: var(--nv-toggle-tablet, inline-flex);
            --nv-auto: var(--nv-auto-tablet, 0);
        }
    }

    @container pbcanvas (min-width: 768px) {
        .pb-nav[data-canvas] {
            --nv-show: var(--nv-show-desktop, flex);
            --nv-row: var(--nv-row-desktop, flex);
            --nv-toggle: var(--nv-toggle-desktop, none);
            --nv-auto: var(--nv-auto-desktop, 1);
        }
    }

    /* A menu placed inside a designed block sits in a wrapper, and a flex
       row will not shrink a wrapper below its content: the menu kept its full
       width on a phone and lay over the logo. The wrapper may shrink; the
       menu inside then clips or collapses as it is meant to. */
    [data-pb-slot]:has(> [data-pb] > .pb-nav),
    [data-pb-slot]:has(> .pb-nav),
    [data-pb]:has(> .pb-nav) { min-width: 0; }

    /* The row. One line: entries that do not fit go under "more" (the
       script decides which). Clipped until the script has measured, so a slow
       script shows a cut row rather than a row that wraps and then jumps. */
    .pb-nav__row {
        display: var(--nv-row);
        align-items: center;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        gap: 4px;
        min-width: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .pb-nav:not([data-nav-ready]) .pb-nav__row { overflow: clip; }
    .pb-nav[data-nav-wrap] .pb-nav__row { flex-wrap: wrap; }

    /* Automatic, and the entries did not fit: the button instead of the row. */
    .pb-nav[data-nav-collapsed] .pb-nav__row { display: none; }

    .pb-nav__item,
    .pb-nav__more { position: relative; flex: none; }

    .pb-nav__item[data-nav-out] { display: none; }

    .pb-nav__link,
    .pb-nav__more-button {
        display: flex;
        align-items: center;
        gap: .4em;
        padding: .5em .75em;
        border-radius: var(--radius-sm, 8px);
        color: inherit;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }

    .pb-nav__label {
        min-width: 0;
        max-width: 16em;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pb-nav__link:hover,
    .pb-nav__more-button:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
    .pb-nav__link:focus-visible,
    .pb-nav__more-button:focus-visible,
    .pb-nav__toggle:focus-visible { outline: 2px solid var(--color-primary, currentColor); outline-offset: 2px; }
    .pb-nav__link[aria-current="page"] { color: var(--color-primary, inherit); font-weight: 600; }

    .pb-nav__icon { display: inline-flex; flex: none; }

    .pb-nav__caret {
        flex: none;
        width: .4em;
        height: .4em;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: translateY(-.15em) rotate(45deg);
    }

    .pb-nav__submenu { margin: 0; padding: 0; list-style: none; }

    /* A submenu of the row hangs under its entry. */
    .pb-nav__row .pb-nav__submenu,
    .pb-nav__more-panel {
        display: none;
        position: absolute;
        inset-block-start: 100%;
        inset-inline-start: 0;
        z-index: 40;
        min-width: 220px;
        margin: 0;
        padding: 8px;
        list-style: none;
        border: 1px solid var(--color-border, rgba(0, 0, 0, .08));
        border-radius: 12px;
        background: var(--color-bg-card, #ffffff);
        color: var(--color-text-dark, inherit);
        box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
    }

    .pb-nav__row .pb-nav__item:hover > .pb-nav__submenu,
    .pb-nav__row .pb-nav__item:focus-within > .pb-nav__submenu,
    .pb-nav__row .pb-nav__item[data-nav-open] > .pb-nav__submenu { display: block; }

    /* A level inside a submenu opens in place, under its entry. */
    .pb-nav__row .pb-nav__submenu .pb-nav__submenu,
    .pb-nav__more-panel .pb-nav__submenu {
        display: block;
        position: static;
        min-width: 0;
        padding: 0;
        padding-inline-start: 12px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .pb-nav__submenu .pb-nav__link,
    .pb-nav__more-panel .pb-nav__link { white-space: normal; }

    /* "More": there only when entries went under it, or on the canvas while
       it is selected. It hangs from the row's end. */
    .pb-nav__more { display: none; }
    .pb-nav[data-nav-overflow] .pb-nav__more,
    .pb-nav__more[data-nav-held] { display: block; }

    .pb-nav__more-menu > summary { list-style: none; }
    .pb-nav__more-menu > summary::-webkit-details-marker { display: none; }
    .pb-nav__more-panel { inset-inline-start: auto; inset-inline-end: 0; }
    .pb-nav__more-menu[open] > .pb-nav__more-panel { display: block; }

    .pb-nav__more-entry { display: none; }
    .pb-nav__more-entry[data-nav-in],
    .pb-nav__more[data-nav-held] .pb-nav__more-entry { display: block; }

    /* What the menu's states hide stays hidden, whatever a part is styled
       with. A part's own style lives in a later layer, so `display: flex` on
       the list — the first thing a designer or the assistant writes — beat
       every rule above and brought the row back on a phone, under the menu
       button and over the logo (the first live run, 2026-12-02). An
       !important in this earliest layer outranks every normal declaration
       after it, and nobody downstream can write !important. Only the hidden
       states and the row's one line are held; how a shown part looks is
       still the author's. */
    .pb-nav { display: var(--nv-show) !important; }
    .pb-nav__row { display: var(--nv-row) !important; }
    .pb-nav[data-nav-collapsed] .pb-nav__row { display: none !important; }
    .pb-nav[data-nav-more="on"]:not([data-nav-wrap]) .pb-nav__row { flex-wrap: nowrap !important; }
    .pb-nav__item[data-nav-out] { display: none !important; }
    .pb-nav__row > .pb-nav__item:not(:hover):not(:focus-within):not([data-nav-open]) > .pb-nav__submenu { display: none !important; }
    .pb-nav:not([data-nav-overflow]) .pb-nav__more:not([data-nav-held]) { display: none !important; }
    .pb-nav__more-menu:not([open]) > .pb-nav__more-panel { display: none !important; }
    .pb-nav__more:not([data-nav-held]) .pb-nav__more-entry:not([data-nav-in]) { display: none !important; }

    /* The page being shown is under "more": the button says so with a dot. */
    .pb-nav__more-button[data-nav-current]::after {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--color-primary, currentColor);
    }

    /* The menu button and its drawer. */
    .pb-nav__menu { display: var(--nv-toggle); }
    .pb-nav[data-nav-collapsed] .pb-nav__menu { display: inline-flex; }

    .pb-nav__toggle {
        list-style: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        border-radius: var(--radius-sm, 8px);
        color: inherit;
        cursor: pointer;
    }

    .pb-nav__toggle::-webkit-details-marker { display: none; }

    /* The default glyph when no icon was chosen: three bars in the text colour. */
    .pb-nav__bars,
    .pb-nav__bars::before,
    .pb-nav__bars::after {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 1px;
        background: currentColor;
    }

    .pb-nav__bars { position: relative; }
    .pb-nav__bars::before,
    .pb-nav__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
    .pb-nav__bars::before { top: -6px; }
    .pb-nav__bars::after { top: 6px; }

    /* Sized by its insets. "auto" is said out loud: in the top layer the
       browser's popover style makes it fit its content, and an empty box
       that fits its content is nothing — no dimming, nothing to click. */
    .pb-nav__overlay {
        position: fixed;
        inset: 0;
        width: auto;
        height: auto;
        z-index: 59;
        margin: 0;
        padding: 0;
        border: 0;
        background: var(--nv-overlay, rgba(0, 0, 0, .4));
    }

    .pb-nav__drawer {
        position: fixed;
        z-index: 60;
        inset-block: 0;
        inset-inline-start: 0;
        inset-inline-end: auto;
        width: min(var(--nv-drawer-width, 80%), 100vw);
        height: 100dvh;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 0 0 env(safe-area-inset-bottom);
        border: 0;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--color-bg-card, #ffffff);
        color: var(--color-text-dark, inherit);
        box-shadow: 0 0 40px rgba(0, 0, 0, .18);
    }

    .pb-nav__menu--side-end .pb-nav__drawer { inset-inline-start: auto; inset-inline-end: 0; }
    .pb-nav__menu--full .pb-nav__drawer { inset: 0; width: 100%; }

    /* Dropped under the header: the script measures where the header ends. */
    .pb-nav__menu--dropdown .pb-nav__drawer {
        inset-block-start: var(--nv-top, 64px);
        inset-block-end: auto;
        inset-inline: 0;
        width: 100%;
        height: auto;
        max-height: calc(100dvh - var(--nv-top, 64px));
        border-radius: 0 0 16px 16px;
    }

    .pb-nav__menu--dropdown .pb-nav__overlay { inset-block-start: var(--nv-top, 64px); }

    .pb-nav__head {
        display: flex;
        flex: none;
        align-items: center;
        justify-content: flex-end;
        min-height: 56px;
        padding: 0 8px;
        border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, .08));
    }

    .pb-nav__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }

    /* A control that only the script can make work is not shown without it.
       Not on the canvas, where the script never runs and the author still has
       to see the close button to style it. */
    .pb-nav:not([data-nav-ready]):not([data-canvas]) [data-nav-script-only] { display: none; }

    /* The drawer's empty places: any widget, padded like the entries. */
    .pb-nav__slot { flex: none; padding: 12px 20px; }
    .pb-nav__slot--drawer-bottom { margin-block-start: auto; }

    .pb-nav__list {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 8px 0;
        list-style: none;
    }

    .pb-nav__list .pb-nav__link {
        min-height: 48px;
        padding: 12px 20px;
        border-radius: 0;
        white-space: normal;
    }

    .pb-nav__list .pb-nav__label { max-width: none; overflow: visible; }
    .pb-nav__list .pb-nav__submenu { padding-inline-start: 16px; }

    .pb-nav__group > summary { list-style: none; cursor: pointer; }
    .pb-nav__group > summary::-webkit-details-marker { display: none; }
    .pb-nav__group > summary > .pb-nav__link { justify-content: space-between; }
    .pb-nav__group[open] > summary .pb-nav__caret { transform: translateY(.1em) rotate(-135deg); }

    html[data-nav-open] { overflow: hidden; }

    /* With no script the drawer cannot be closed by its overlay or its
       button, so it opens in the page's flow under the menu button, which
       still closes it (CMS-L116-13). */
    @media (scripting: none) {
        .pb-nav__overlay { display: none; }
        .pb-nav__menu[open] { display: block; flex-basis: 100%; }
        .pb-nav__drawer {
            position: static;
            width: 100%;
            height: auto;
            box-shadow: none;
        }
    }

    /* On the editor's canvas the drawer is drawn open only on the overlay
       stage (CMS-L117), where the device frame is the screen: "fixed" is
       fixed to the frame there, so the drawer and its overlay are the shop's
       own, in the shop's own place. What differs is only what the shop reads
       from the window: on the canvas the window is the editor's, so the
       screen's size is the frame's. The staged drawer is shown whatever the
       device's switches say; the stage itself says when a device has none. */
    .pb-nav[data-canvas] .pb-nav__menu[open] { display: block; }
    .pb-nav[data-canvas] .pb-nav__drawer {
        width: min(var(--nv-drawer-width, 80%), 100%);
        height: 100%;
    }

    .pb-nav[data-canvas] .pb-nav__menu--full .pb-nav__drawer { width: 100%; }
    .pb-nav[data-canvas] .pb-nav__menu--dropdown .pb-nav__drawer {
        width: 100%;
        height: auto;
        max-height: calc(100% - var(--nv-top, 64px));
    }

    .pb-nav__empty { padding: .5em .75em; opacity: .6; }

    @media (prefers-reduced-motion: no-preference) {
        .pb-nav:not([data-canvas]) .pb-nav__menu[open] .pb-nav__drawer { animation: pb-nav-in .2s ease-out; }
    }

    @keyframes pb-nav-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

@layer haya-defaults {
    /* The phone's bottom bar (CMS-L116-9). The widget writes each device's
       display as a variable (SiteBottomBar.StyleVariables) and this picks one
       by the width it is drawn in: the window on the shop, the device frame in
       the builder — the menu's arrangement. Mobile first. */
    .pb-bottombar {
        --bb-show: var(--bb-show-mobile, flex);
        --bb-height: 60px;
        display: var(--bb-show);
        position: fixed;
        inset-inline: 0;
        inset-block-end: 0;
        z-index: 50;
        box-sizing: border-box;
        min-height: calc(var(--bb-height) + env(safe-area-inset-bottom, 0px));
        padding-block-end: env(safe-area-inset-bottom, 0px);
        /* No fill, line, shadow or text colour here: those are styles of the
           widget itself (SiteBottomBar.StarterLook), so the style pane shows
           them and a reset takes them away. A default painted here was a
           background the pane showed as empty. */
        font-size: 11px;
        line-height: 1.3;
    }

    @media (min-width: 640px) {
        .pb-bottombar:not([data-canvas]) { --bb-show: var(--bb-show-tablet, none); }
    }

    @media (min-width: 768px) {
        .pb-bottombar:not([data-canvas]) { --bb-show: var(--bb-show-desktop, none); }
    }

    @container pbcanvas (min-width: 640px) {
        .pb-bottombar[data-canvas] { --bb-show: var(--bb-show-tablet, none); }
    }

    @container pbcanvas (min-width: 768px) {
        .pb-bottombar[data-canvas] { --bb-show: var(--bb-show-desktop, none); }
    }

    /* Which devices draw the bar is the widget's setting. A part's style
       comes in a later layer and would win over it, so a design that gave the
       bar "display: flex" would put it on a desktop: held here, where an
       !important outranks every normal declaration after it (the menu's rule). */
    .pb-bottombar { display: var(--bb-show) !important; }

    /* The keyboard is up: a bar riding on top of it covers the field being
       typed in. Set by pb-behaviors.js from the visual viewport. */
    html[data-bar-keyboard] .pb-bottombar:not([data-canvas]) { display: none !important; }

    .pb-bottombar__row {
        display: flex;
        flex: 1 1 auto;
        align-items: stretch;
        justify-content: space-around;
        min-width: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .pb-bottombar__item {
        display: flex;
        flex: 1 1 0;
        min-width: 0;
    }

    .pb-bottombar__item[hidden] { display: none; }

    .pb-bottombar__host { display: block; flex: 1 1 auto; min-width: 0; }

    .pb-bottombar__link {
        position: relative;
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        box-sizing: border-box;
        min-width: 44px;
        min-height: var(--bb-height);
        margin: 0;
        padding: 6px 4px;
        border: 0;
        border-radius: 0;
        background: none;
        color: inherit;
        font: inherit;
        text-decoration: none;
        list-style: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    summary.pb-bottombar__link::-webkit-details-marker { display: none; }
    .pb-bottombar__host > summary.pb-bottombar__link { height: 100%; }
    .pb-bottombar__link[aria-current="page"],
    .pb-bottombar__host[open] > summary.pb-bottombar__link { color: var(--color-primary, inherit); font-weight: 600; }
    .pb-bottombar__link:focus-visible { outline: 2px solid var(--color-primary, currentColor); outline-offset: -2px; }

    .pb-bottombar__icon { display: inline-flex; }

    .pb-bottombar__label {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pb-bottombar__sr {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    /* The menu entry opens the site menu's drawer, which only the script can
       reach: not drawn until it is here. Always on the canvas. */
    .pb-bottombar:not([data-bar-ready]):not([data-canvas]) [data-bar-script-only] { display: none; }

    /* The basket is the storefront's own cart menu, drawn as an entry: icon
       over word, the count on the icon's corner. Its panel is its own. */
    .pb-bottombar .cart-menu { display: flex; flex: 1 1 auto; min-width: 0; font-size: inherit; color: inherit; }
    .pb-bottombar .cart-menu .cart-menu__trigger {
        position: relative;
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        box-sizing: border-box;
        min-width: 44px;
        min-height: var(--bb-height);
        padding: 6px 4px;
        border-radius: 0;
        background: none;
    }
    .pb-bottombar .cart-menu .cart-menu__badge {
        position: absolute;
        inset-block-start: 4px;
        inset-inline-start: calc(50% + 4px);
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        font-size: 10px;
        line-height: 16px;
    }

    /* A sheet: what the search and categories entries open, from the bottom
       edge up. The overlay is the menu drawer's own. */
    .pb-bottombar__sheet {
        position: fixed;
        inset-inline: 0;
        inset-block-start: auto;
        /* On top of the keyboard when one is up (pb-behaviors.js). */
        inset-block-end: var(--pb-keyboard, 0px);
        z-index: 60;
        box-sizing: border-box;
        width: auto;
        height: auto;
        max-width: none;
        max-height: min(80dvh, calc(100dvh - var(--pb-keyboard, 0px) - 24px));
        margin: 0;
        padding: 0 0 env(safe-area-inset-bottom, 0px);
        border: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        /* No fill, text colour, shadow or corners here: those are styles of
           the sheet part (SiteBottomBar.SheetLook), so the style pane shows
           them and a reset takes them away — the bar's own arrangement. */
        font-size: 14px;
        line-height: 1.6;
    }

    .pb-bottombar__host:not([open]) > .pb-bottombar__sheet,
    .pb-bottombar__host:not([open]) > .pb-bottombar__overlay { display: none !important; }

    .pb-bottombar__head {
        display: flex;
        flex: none;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px 4px;
    }

    .pb-bottombar__title { font-weight: 600; font-size: 15px; }

    .pb-bottombar__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-inline-end: -10px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: none;
        color: inherit;
        cursor: pointer;
    }

    .pb-bottombar__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 20px; }
    .pb-bottombar__body .site-search { width: 100%; }
    .pb-bottombar__none { margin: 0; padding: 12px 0; opacity: .7; }

    .pb-bottombar__cats { margin: 0; padding: 0; list-style: none; }
    .pb-bottombar__cats .pb-bottombar__cats { padding-inline-start: 16px; }
    .pb-bottombar__cat {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 4px 0;
        color: inherit;
        text-decoration: none;
        border-block-end: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    }

    .pb-bottombar__empty { padding: .75em 1em; opacity: .6; }

    /* The page makes room for the bar, on the devices that draw it, so the
       last thing on a page is not under it; and anything else pinned to the
       bottom edge can sit above it (--pb-bottom-bar). */
    @media (max-width: 639.98px) {
        body:has(.pb-bottombar[data-bar-mobile]:not([data-canvas])) {
            --pb-bottom-bar: calc(60px + env(safe-area-inset-bottom, 0px));
            padding-block-end: var(--pb-bottom-bar);
        }
    }

    @media (min-width: 640px) and (max-width: 767.98px) {
        body:has(.pb-bottombar[data-bar-tablet]:not([data-canvas])) {
            --pb-bottom-bar: calc(60px + env(safe-area-inset-bottom, 0px));
            padding-block-end: var(--pb-bottom-bar);
        }
    }

    @media (min-width: 768px) {
        body:has(.pb-bottombar[data-bar-desktop]:not([data-canvas])) {
            --pb-bottom-bar: calc(60px + env(safe-area-inset-bottom, 0px));
            padding-block-end: var(--pb-bottom-bar);
        }
    }

    html[data-bar-keyboard] body { --pb-bottom-bar: 0px; padding-block-end: 0; }

    /* The site menu, opened from the bar while its own button is not drawn on
       this device: the menu stays out of the header's layout and only its
       drawer shows (the script marks it, CMS-L116-10). */
    .pb-nav:has(> .pb-nav__menu[data-nav-summoned]) {
        display: block !important;
        position: absolute;
        inline-size: 0;
        block-size: 0;
        flex: none;
    }

    .pb-nav__menu[data-nav-summoned] { display: block; }
    .pb-nav__menu[data-nav-summoned] > summary { display: none; }

    /* With no script a sheet cannot be closed by its overlay, so the bar
       stays on top of it and the entry that opened it closes it. */
    @media (scripting: none) {
        .pb-bottombar { z-index: 61; }
        .pb-bottombar__sheet { inset-block-end: calc(var(--bb-height, 60px) + 1px + env(safe-area-inset-bottom, 0px)); }
    }

    /* On the editor's canvas the bar sits where the builder puts it — the
       bottom of the device frame. A sheet is drawn open only on the overlay
       stage (CMS-L117), where the frame is the screen and "fixed" is fixed
       to it; only the sheet's height is read from the frame, not the window. */
    .pb-bottombar[data-canvas] { position: relative; z-index: auto; }
    .pb-bottombar[data-canvas] .pb-bottombar__sheet { max-height: 80%; }

    @media (prefers-reduced-motion: no-preference) {
        .pb-bottombar:not([data-canvas]) .pb-bottombar__host[open] > .pb-bottombar__sheet { animation: pb-bar-up .2s ease-out; }
    }

    @keyframes pb-bar-up {
        from { transform: translateY(24px); opacity: 0; }
        to { transform: none; opacity: 1; }
    }
}
