/* Mobile dock inspired by the supplied prototype. Desktop navigation is unchanged. */
.mobile-nav,
.mobile-nav-sheet {
    display: none;
}

@media (max-width: 992px) {
    :root {
        --mobile-nav-height: clamp(82px, 18.4vw, 100px);
        --mobile-nav-bubble: clamp(60px, 16vw, 86px);
        --mobile-nav-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
        --mobile-nav-clearance: calc(var(--mobile-nav-height) + var(--mobile-nav-bubble) / 2 + var(--mobile-nav-bottom) + 16px);
    }

    html {
        scroll-padding-bottom: var(--mobile-nav-clearance);
    }

    body {
        padding-bottom: var(--mobile-nav-clearance);
    }

    header .header-col-mid,
    header #menu-btn,
    header #btn-extra {
        display: none !important;
    }

    .mobile-nav,
    .mobile-nav *,
    .mobile-nav-sheet,
    .mobile-nav-sheet * {
        box-sizing: border-box;
    }

    .mobile-nav {
        display: block;
        position: fixed;
        z-index: 1040;
        right: 8px;
        bottom: var(--mobile-nav-bottom);
        left: 8px;
        width: calc(100% - 16px);
        max-width: 532px;
        height: var(--mobile-nav-height);
        margin: 0 auto;
        padding: 0;
        border: 0;
        border-radius: 30px 30px 12px 12px;
        background: #fafafa;
        font-family: var(--body-font, Arial, sans-serif);
        line-height: 1;
        isolation: isolate;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav.is-ready {
        background: transparent;
    }

    .mobile-nav-definitions {
        position: absolute;
        pointer-events: none;
    }

    .mobile-nav-surface {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: visible;
        filter: drop-shadow(0 5px 16px rgb(24 22 42 / 10%));
        pointer-events: none;
        z-index: -1;
    }

    .mobile-nav-items {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        height: 100%;
        padding: 0 4.5%;
    }

    .mobile-nav .mobile-nav-item {
        position: relative;
        display: block;
        width: 100%;
        min-width: 0;
        height: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: #29292c;
        font: inherit;
        text-decoration: none;
        cursor: pointer;
        touch-action: manipulation;
    }

    .mobile-nav-icon {
        position: absolute;
        top: 39%;
        left: 60% !important;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: top 220ms ease, color 180ms ease;
    }

    .mobile-nav-icon svg {
        display: block;
        width: clamp(27px, 6vw, 34px);
        height: clamp(27px, 6vw, 34px);
        overflow: visible;
    }

    .mobile-nav-label {
        position: absolute;
        right: -4px;
        bottom: 18%;
        left: 10px;
        color: #56535b;
        font-size: clamp(11px, 2.55vw, 14px);
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }

    .mobile-nav-item.is-active .mobile-nav-icon {
        top: 0;
        width: var(--mobile-nav-bubble);
        height: var(--mobile-nav-bubble);
        background: #fafafa;
        color: #9459ed;
        box-shadow: 0 -1px 3px rgb(255 255 255 / 45%);
    }

    .mobile-nav-item.is-active .mobile-nav-icon svg {
        width: 57%;
        height: 57%;
        stroke: url(#mobile-nav-accent);
        stroke-width: 2;
        filter: drop-shadow(0 3px 3px rgb(134 72 230 / 12%));
    }

    .mobile-nav-item.is-active .mobile-nav-home-body {
        fill: url(#mobile-nav-accent);
        stroke: url(#mobile-nav-accent);
    }

    .mobile-nav-item:first-child.is-active .mobile-nav-icon svg {
        width: 72%;
        height: 72%;
    }

    .mobile-nav-item.is-active .mobile-nav-home-smile {
        stroke: white;
        stroke-width: 1.6;
    }

    .mobile-nav-item.is-active .mobile-nav-label {
        color: #151419;
        font-weight: 700;
    }

    .mobile-nav-item:focus-visible {
        outline: 2px solid #8551e5;
        outline-offset: -4px;
    }

    .mobile-nav-sheet[open] {
        display: block;
        position: fixed;
        inset: auto 12px calc(var(--mobile-nav-clearance) - 2px);
        width: calc(100% - 24px);
        max-width: 500px;
        max-height: calc(100vh - var(--mobile-nav-clearance) - 22px);
        max-height: calc(100dvh - var(--mobile-nav-clearance) - 22px);
        margin: 0 auto;
        padding: 12px 22px 22px;
        overflow: auto;
        overscroll-behavior: contain;
        border: 1px solid rgb(255 255 255 / 75%);
        border-radius: 26px;
        background: #fafafa;
        color: #24202d;
        box-shadow: 0 16px 60px rgb(26 18 44 / 18%);
        font-family: var(--body-font, Arial, sans-serif);
        line-height: 1.4;
    }

    .mobile-nav-sheet::backdrop {
        background: rgb(30 25 40 / 32%);
        backdrop-filter: blur(3px);
    }

    html.mobile-nav-sheet-open,
    .mobile-nav-sheet-open body {
        overflow: hidden;
    }

    .mobile-nav-sheet-handle {
        width: 32px;
        height: 4px;
        margin: 0 auto 18px;
        border-radius: 10px;
        background: #d9d4e1;
    }

    .mobile-nav-sheet-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 18px;
    }

    .mobile-nav-sheet .mobile-nav-eyebrow {
        margin: 0 0 5px;
        color: #827a8e;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 1.7px;
        line-height: 1.4;
    }

    .mobile-nav-sheet h2 {
        margin: 0;
        color: #24202d;
        font-family: inherit;
        font-size: 21px;
        font-weight: 600;
        letter-spacing: -.6px;
        line-height: 1.2;
    }

    .mobile-nav-close {
        display: grid;
        flex: 0 0 44px;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 11px;
        border: 0;
        border-radius: 50%;
        background: #eeebf3;
        color: #484051;
        cursor: pointer;
    }

    .mobile-nav-sheet svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .mobile-nav-sheet .mobile-nav-booking {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
        padding: 18px;
        border-radius: 17px;
        background: linear-gradient(115deg, #713bea, #a66ce7);
        color: #fff;
        text-decoration: none;
    }

    .mobile-nav-booking strong,
    .mobile-nav-page-links strong {
        display: block;
        font-size: 14px;
        font-weight: 600;
    }

    .mobile-nav-booking span span,
    .mobile-nav-page-links span span {
        display: block;
        margin-top: 3px;
        font-size: 11px;
        line-height: 1.4;
    }

    .mobile-nav-sheet .mobile-nav-page-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 63px;
        padding: 12px 4px;
        border-bottom: 1px solid #eae6ee;
        color: #2a2434;
        text-decoration: none;
    }

    .mobile-nav-page-links span span {
        color: #81788d;
    }

    .mobile-nav-page-links svg {
        width: 17px;
        height: 17px;
        color: #948b9f;
    }

    .mobile-nav-treatments {
        margin-top: 10px;
    }

    .mobile-nav-treatments summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        padding: 8px 4px;
        font-size: 13px;
        font-weight: 600;
        list-style: none;
        cursor: pointer;
    }

    .mobile-nav-treatments summary::-webkit-details-marker {
        display: none;
    }

    .mobile-nav-treatments summary span {
        font-size: 22px;
        font-weight: 400;
    }

    .mobile-nav-treatments[open] summary span {
        transform: rotate(45deg);
    }

    .mobile-nav-sheet .mobile-nav-treatments a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 10px;
        color: #655477;
        font-size: 12px;
        text-decoration: none;
    }

    .mobile-nav-sheet a[aria-current="page"]:not(.mobile-nav-booking),
    .mobile-nav-sheet a:not(.mobile-nav-booking):hover {
        border-radius: 10px;
        background: #f0e9fb;
        color: #6a32c9;
    }

    .mobile-nav-sheet :focus-visible {
        outline: 2px solid #8551e5;
        outline-offset: 3px;
    }

    @media (prefers-reduced-motion: reduce) {

        .mobile-nav-icon,
        .mobile-nav-icon svg {
            transition: none;
        }
    }
}