/* Commercial navigation only. Native <details> keeps the menu usable without JavaScript. */
.comptimo-mobile-navigation { display: none; }
.comptimo-mobile-navigation__close-icon { display: none; }

@media (max-width: 920px) {
    [data-comptimo-mobile-header="v1"] .container.nav {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
    }
    [data-comptimo-mobile-header="v1"] .brand {
        grid-column: 1;
        min-width: 0;
    }
    [data-comptimo-mobile-header="v1"] > .container > nav.links { display: none; }
    [data-comptimo-mobile-header="v1"] .comptimo-mobile-navigation {
        display: block;
        position: static;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
    .comptimo-mobile-navigation > summary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 94px;
        min-height: 44px;
        padding: 9px 12px;
        border: 1px solid #cfdce6;
        border-radius: 12px;
        background: #fff;
        color: #18354b;
        font: inherit;
        font-size: 15px;
        font-weight: 750;
        line-height: 1.2;
        list-style: none;
        cursor: pointer;
        touch-action: manipulation;
        user-select: none;
    }
    .comptimo-mobile-navigation > summary::-webkit-details-marker { display: none; }
    .comptimo-mobile-navigation > summary::marker { content: ""; }
    .comptimo-mobile-navigation > summary svg { flex: 0 0 20px; }
    .comptimo-mobile-navigation[open] > summary {
        background: #edf6f7;
        border-color: #208579;
    }
    .comptimo-mobile-navigation[open] .comptimo-mobile-navigation__open-icon { display: none; }
    .comptimo-mobile-navigation[open] .comptimo-mobile-navigation__close-icon { display: block; }
    .comptimo-mobile-navigation__panel { display: none; }
    .comptimo-mobile-navigation[open] > .comptimo-mobile-navigation__panel {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 60;
        display: grid;
        gap: 3px;
        max-height: min(65vh, 520px);
        max-height: min(65dvh, 520px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 10px;
        border: 1px solid #d7e2e9;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 14px 36px rgb(15 42 60 / 18%);
    }
    .comptimo-mobile-navigation__panel > a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 14px;
        border-radius: 9px;
        color: #18354b;
        font-size: 16px;
        font-weight: 650;
        line-height: 1.4;
        text-decoration: none;
    }
    .comptimo-mobile-navigation__panel > a:hover,
    .comptimo-mobile-navigation__panel > a.active {
        background: #edf6f7;
        color: #096d63;
    }
    .comptimo-mobile-navigation > summary:focus-visible,
    .comptimo-mobile-navigation__panel > a:focus-visible {
        outline: 3px solid #168579;
        outline-offset: 2px;
    }
    [data-comptimo-mobile-header="v1"] .nav-actions {
        grid-column: 1 / -1;
        width: 100%;
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px;
    }
    [data-comptimo-mobile-header="v1"] .nav-actions > .btn {
        display: inline-flex;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 44px;
        text-align: center;
    }
    [data-comptimo-mobile-header="v1"] .account-menu-panel {
        right: 0;
        left: auto;
        max-width: calc(100vw - 32px);
    }
}
