.guest-mobile-menu {
    max-width: 640px;
}

.guest-mobile-menu h1 {
    margin-bottom: 16px;
    color: var(--chrome-heading);
    font-size: clamp(1.65rem, 5vw, 2rem);
}

.guest-mobile-auth,
.guest-mobile-preferences,
.guest-mobile-services {
    display: grid;
    gap: 12px;
}

.guest-mobile-auth {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.guest-mobile-preferences fieldset {
    padding: 8px;
    border: 1px solid var(--chrome-border);
    border-radius: 14px;
}

.guest-mobile-preferences legend {
    float: none;
    width: auto;
    margin: 0;
    padding-inline: 6px;
    font-size: .95rem;
    font-weight: 750;
}

.guest-mobile-preferences .patient-preference-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.guest-mobile-preferences .patient-preference-choices button {
    min-height: 44px;
    border: 1px solid var(--chrome-border);
    border-radius: 10px;
    background: var(--chrome-surface-solid);
    color: var(--chrome-ink);
}

.guest-mobile-preferences .patient-preference-choices button[aria-pressed="true"] {
    border-color: var(--chrome-border-strong);
    background: #e8f2f8;
    font-weight: 750;
}

[data-bs-theme="dark"] .guest-mobile-preferences .patient-preference-choices button[aria-pressed="true"] {
    background: #102d3b;
}

.guest-mobile-menu .patient-hub-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px;
    border: 1px solid var(--chrome-border);
    border-radius: 16px;
    background: var(--chrome-surface-solid);
    color: var(--chrome-heading);
    text-decoration: none;
}

.guest-mobile-menu .dashboard-quick-icon {
    display: grid;
    flex: 0 0 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--chrome-green-50);
}

.guest-mobile-menu svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guest-mobile-menu .feather-chevron-right {
    margin-inline-start: auto;
}

[dir="rtl"] .guest-mobile-menu .feather-chevron-right {
    transform: scaleX(-1);
}

.guest-mobile-menu .guest-more-mobile {
    display: none;
}

@media (max-width: 720px) {
    .guest-mobile-shell .guest-more-desktop-preferences {
        display: none;
    }

    .guest-mobile-shell .guest-mobile-menu .guest-more-mobile {
        display: grid;
    }

    .guest-mobile-menu .guest-account-deletion-link {
        color: #b42332;
    }

    .guest-account-deletion-link .dashboard-quick-icon {
        background: #fcebed;
    }

    [data-bs-theme="dark"] .guest-mobile-menu .guest-account-deletion-link {
        color: #ffa8b2;
    }

    [data-bs-theme="dark"] .guest-account-deletion-link .dashboard-quick-icon {
        background: #47252f;
    }

    .guest-more-mobile .patient-preference-choices button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }


    .guest-mobile-shell {
        padding-bottom: var(--mobile-tabs-height);
    }

    .guest-mobile-shell .back-to-top {
        margin-bottom: var(--mobile-tabs-height);
    }

    .guest-mobile-shell .care-header-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
        direction: ltr;
        gap: 8px;
        min-height: 62px;
    }

    .guest-mobile-shell .care-header-actions {
        display: contents;
    }

    .guest-mobile-shell .care-header :is(
        .care-brand-copy, .theme-toggle-inline,
        .navbar-toggler, .care-mobile-nav, .care-nav
    ) {
        display: none;
    }

    .guest-mobile-shell .care-header .care-language-toggle {
        grid-area: 1 / 1;
        justify-self: start;
    }

    [dir="rtl"] .guest-mobile-shell .care-header .care-language-toggle {
        direction: rtl;
    }

    /* Use the same flag pill as the authentication screens. */
    .guest-mobile-shell .care-header .care-flag-btn {
        min-height: 44px;
        justify-content: normal;
        gap: .45rem;
        padding: .45rem .7rem;
        border: 1px solid var(--care-border);
        border-radius: 999px;
        color: var(--care-ink);
        background: transparent;
        box-shadow: none;
        font-family: "Segoe UI", Tahoma, Arial, sans-serif;
        font-size: .9rem;
        font-weight: 500;
        transition: none;
        transform: none;
    }

    [data-bs-theme="dark"] .guest-mobile-shell .care-header .care-flag-btn {
        color: #cbd5e1;
        border-color: #2b3a52;
    }

    .guest-mobile-shell .care-header .care-flag-btn img {
        border-radius: .15rem;
    }

    .guest-mobile-shell .care-header .care-flag-btn span {
        display: inline;
    }

    .guest-mobile-shell .care-header .care-brand {
        grid-area: 1 / 2;
        min-height: 44px;
        justify-self: center;
    }

    .guest-mobile-shell .care-header .care-brand-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .guest-mobile-shell .care-header-actions .guest-header-login {
        display: inline-flex;
        grid-area: 1 / 3;
        justify-self: end;
        align-items: center;
        min-height: 44px;
        padding-inline: 10px;
        font-size: .82rem;
        white-space: nowrap;
    }

    .guest-mobile-shell.has-app-download-banner {
        padding-bottom: calc(var(--app-download-height, 180px) + var(--mobile-tabs-height));
    }

    .guest-mobile-shell .app-download-banner {
        bottom: var(--mobile-tabs-height);
        z-index: 1020;
    }
}
