/*
 * Royal Servicess LLC
 * Authenticated Customer Mobile Header Alignment R1
 *
 * Presentation only.
 * No navigation, authentication or booking logic changes.
 */

@media (max-width: 960px) {

    .app-shell-header--customer
    .app-shell-header__inner {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            max-content
            44px;
        grid-template-rows: auto auto;
        grid-template-areas:
            "brand navigation account"
            "links links links";
        align-items: center;
        column-gap: 10px;
        row-gap: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .app-shell-header--customer
    .app-shell-brand-group {
        grid-area: brand;
        min-width: 0;
    }

    .app-shell-header--customer
    .app-shell-brand {
        min-width: 0;
        max-width: 100%;
    }

    .app-shell-header--customer
    .app-shell-brand__name {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-shell-header--customer
    .app-shell-menu-toggle {
        grid-area: navigation;
        justify-self: end;
        align-self: center;
        position: relative;
        z-index: 2;
        margin: 0;
    }

    .app-shell-header--customer
    .app-shell-user {
        grid-area: account;
        justify-self: end;
        align-self: center;
        position: relative;
        z-index: 3;
        min-width: 0;
        margin: 0;
    }

    .app-shell-header--customer
    .app-shell-user > summary {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 4px;
    }

    .app-shell-header--customer
    .app-shell-user__identity,
    .app-shell-header--customer
    .app-shell-user__chevron {
        display: none;
    }

    .app-shell-header--customer
    .app-shell-nav {
        grid-area: links;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {

    .app-shell-header--customer
    .app-shell-header__inner {
        width: calc(100% - 24px);
        grid-template-columns:
            minmax(0, 1fr)
            44px
            44px;
        column-gap: 8px;
    }

    .app-shell-header--customer
    .app-shell-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
    }

    .app-shell-header--customer
    .app-shell-menu-toggle__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .app-shell-header--customer
    .app-shell-menu-toggle__lines {
        margin: 0 auto;
    }
}
