.site-mobile-nav,
.site-mobile-menu-tools,
.site-mobile-backdrop,
.site-mobile-cart-count {
    display: none;
}

@media (max-width: 767px) {
    body.site-mobile {
        --site-mobile-nav-height: calc(4.5rem + env(safe-area-inset-bottom, 0px));

        padding-bottom: var(--site-mobile-nav-height);
        -webkit-tap-highlight-color: transparent;
    }

    body.site-mobile .announce {
        display: none;
    }

    body.site-mobile .header {
        padding-top: env(safe-area-inset-top, 0px);
    }

    body.site-mobile .header__inner {
        min-height: 64px;
        gap: 0.5rem;
        padding-inline: max(1rem, env(safe-area-inset-left, 0px))
            max(1rem, env(safe-area-inset-right, 0px));
    }

    body.site-mobile .header__logo {
        padding: 0.25rem 0;
    }

    body.site-mobile .header__logo img {
        width: min(34vw, 9rem);
    }

    body.site-mobile.client-signed-in:not(.app-shell) .header__logo img {
        width: min(27vw, 9rem);
    }

    body.site-mobile.app-shell .header__cart {
        display: none;
    }

    body.site-mobile .header__actions {
        gap: 0.25rem;
    }

    body.site-mobile .header__actions > .btn--primary,
    body.site-mobile .header__cart > span:not(.site-mobile-cart-count),
    body.site-mobile .header__account-caret {
        display: none;
    }

    body.site-mobile .header__login > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    body.site-mobile .header__cart,
    body.site-mobile .header__login,
    body.site-mobile .nav-toggle,
    body.site-mobile .notif__trigger {
        position: relative;
        display: inline-flex;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border-radius: 14px;
    }

    body.site-mobile .site-mobile-cart-count {
        position: absolute;
        top: 0;
        right: 0;
        display: grid;
        place-items: center;
        min-width: 17px;
        height: 17px;
        padding-inline: 3px;
        border-radius: 9px;
        background: var(--navy);
        color: var(--white);
        font-size: 10px;
        line-height: 1;
    }

    body.site-mobile .site-mobile-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 240;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 0.35rem max(0.25rem, env(safe-area-inset-right, 0px))
            calc(0.35rem + env(safe-area-inset-bottom, 0px))
            max(0.25rem, env(safe-area-inset-left, 0px));
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -6px 28px rgba(21, 40, 72, 0.06);
    }

    body.site-mobile .site-mobile-nav__item {
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 3px;
        min-width: 0;
        min-height: 60px;
        padding: 0.25rem 0;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: var(--muted);
        font: 600 10px/1.25 var(--font-ui);
        text-decoration: none;
        touch-action: manipulation;
        cursor: pointer;
    }

    body.site-mobile .site-mobile-nav__item[hidden] {
        display: none;
    }

    body.site-mobile .site-mobile-nav__icon {
        display: grid;
        place-items: center;
        width: 40px;
        height: 30px;
        border-radius: 11px;
    }

    body.site-mobile .site-mobile-nav__item[aria-current="page"],
    body.site-mobile .site-mobile-nav__item[aria-expanded="true"] {
        background: var(--mist);
        color: var(--navy);
    }

    body.site-mobile .site-mobile-nav__item--book .site-mobile-nav__icon {
        background: var(--navy);
        color: var(--white);
    }

    body.site-mobile .site-mobile-nav__item:focus-visible,
    body.site-mobile .site-mobile-menu-tools a:focus-visible,
    body.site-mobile .site-mobile-menu-tools button:focus-visible {
        outline: 3px solid var(--navy);
        outline-offset: -3px;
    }

    body.site-mobile .tabbar {
        padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
    }

    body.site-mobile .tabbar__item {
        min-height: 72px;
    }

    body.site-mobile.site-mobile-menu-open {
        overflow: hidden;
    }

    body.site-mobile.site-mobile-menu-open .header {
        z-index: 261;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.site-mobile.site-mobile-menu-open .site-mobile-backdrop:not([hidden]) {
        position: fixed;
        inset: 0;
        z-index: 260;
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(21, 40, 72, 0.45);
    }

    body.site-mobile.site-mobile-ready #primary-nav:not([hidden]) {
        position: fixed;
        inset: auto max(0.5rem, env(safe-area-inset-right, 0px))
            max(0.5rem, env(safe-area-inset-bottom, 0px))
            max(0.5rem, env(safe-area-inset-left, 0px));
        z-index: 300;
        width: auto;
        max-height: calc(100vh - 1rem - env(safe-area-inset-top, 0px));
        max-height: calc(100dvh - 1rem - env(safe-area-inset-top, 0px));
        margin: 0;
        padding: 1rem;
        border-radius: 24px;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        overscroll-behavior: contain;
        scroll-padding-top: 1rem;
    }

    body.site-mobile .site-mobile-menu-tools:not([hidden]) {
        display: grid;
        gap: 0.75rem;
        padding-bottom: 1rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid var(--line);
    }

    body.site-mobile .site-mobile-menu-tools__heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    body.site-mobile .site-mobile-menu-tools h2 {
        margin: 0;
        color: var(--navy);
        font: 700 1.1rem/1.3 var(--font-ui);
    }

    body.site-mobile .site-mobile-menu-tools button {
        display: grid;
        flex: 0 0 44px;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--mist);
        color: var(--navy);
        font-size: 1.5rem;
        cursor: pointer;
    }

    body.site-mobile .site-mobile-menu-tools__links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    body.site-mobile .site-mobile-menu-tools__links a {
        display: grid;
        place-items: center;
        min-height: 44px;
        border: 1px solid var(--line);
        border-radius: 12px;
        color: var(--navy);
        font-size: 0.875rem;
        font-weight: 600;
        text-decoration: none;
    }

    body.site-mobile #primary-nav .nav__link,
    body.site-mobile #primary-nav .nav__submenu-link,
    body.site-mobile #primary-nav .nav__account a {
        min-height: 44px;
    }

    body.site-mobile #primary-nav .nav__account a {
        display: flex;
        align-items: center;
    }

    body.site-mobile .header__account-menu,
    body.site-mobile .notif__panel {
        max-width: calc(100vw - 2rem);
        max-height: calc(100dvh - 10rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    body.site-mobile .header__account-menu a,
    body.site-mobile .notif__close {
        min-height: 44px;
    }

    body.site-mobile .client-avatar:not(.is-positioned) {
        bottom: calc(var(--site-mobile-nav-height) + 0.75rem);
    }

    body.site-mobile .client-avatar__bubble {
        max-height: min(calc(100dvh - 7rem), calc(100dvh - var(--site-mobile-nav-height) - 1rem));
    }

    body.site-mobile.site-mobile-keyboard-open .site-mobile-nav,
    body.site-mobile.site-mobile-keyboard-open .tabbar {
        visibility: hidden;
        pointer-events: none;
    }

    body.site-mobile .footer {
        padding-bottom: 1.5rem;
    }
}
