/*
|--------------------------------------------------------------------------
| Royal Servicess LLC
| Customer Account Experience v3
|--------------------------------------------------------------------------
|
| Final presentation layer for:
| - authenticated customer header
| - compact rental cards
| - rental detail modal
|
| No commercial or booking logic lives in this file.
|--------------------------------------------------------------------------
*/


/* ==========================================================================
   CUSTOMER HEADER — DESKTOP ARCHITECTURE
   ========================================================================== */

.app-shell-header--customer {
    min-height: 76px;

    border-bottom:
        1px solid
        rgba(216, 179, 83, .13);

    background:
        linear-gradient(
            180deg,
            rgba(5, 6, 7, .995),
            rgba(7, 8, 9, .975)
        );

    box-shadow:
        0
        18px
        55px
        rgba(0, 0, 0, .20);
}

.app-shell-header--customer
.app-shell-header__inner {
    width:
        min(
            1560px,
            calc(100% - 72px)
        );

    max-width: none;

    min-height: 76px;

    margin-inline: auto;

    padding:
        0
        150px
        0
        0;

    display: grid;

    grid-template-columns:
        minmax(225px, auto)
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 30px;
}


/*
|--------------------------------------------------------------------------
| Brand
|--------------------------------------------------------------------------
*/

.app-shell-header--customer
.app-shell-brand-group {
    display: flex;

    align-items: center;

    gap: 0;

    min-width: 0;
}

.app-shell-header--customer
.app-shell-brand {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;

    text-decoration: none;
}

.app-shell-header--customer
.app-shell-brand__mark {
    flex:
        0
        0
        48px;

    width: 48px;
    height: 48px;

    border-radius: 11px;

    box-shadow:
        0
        0
        0
        1px
        rgba(220, 180, 77, .22),
        0
        10px
        28px
        rgba(0, 0, 0, .34);
}

.app-shell-header--customer
.app-shell-brand__name {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    min-width: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.07rem;

    font-weight: 700;

    line-height: 1.03;

    letter-spacing: -.018em;

    color: #f3efe7;

    white-space: nowrap;
}

.app-shell-header--customer
.app-shell-brand__name::after {
    content:
        "SELF-DRIVE RENTALS";

    margin-top: 4px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: .44rem;

    font-weight: 850;

    line-height: 1;

    letter-spacing: .19em;

    color:
        rgba(227, 218, 199, .42);
}

.app-shell-header--customer
.app-shell-context {
    display: none !important;
}


/*
|--------------------------------------------------------------------------
| Navigation
|--------------------------------------------------------------------------
*/

.app-shell-header--customer
.app-shell-nav {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 2px;

    min-width: 0;

    margin: 0;

    overflow: visible;
}

.app-shell-header--customer
.app-shell-nav__link {
    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding:
        0
        13px;

    border: 0 !important;

    border-radius: 0 !important;

    color:
        rgba(239, 233, 223, .59) !important;

    background:
        transparent !important;

    box-shadow:
        none !important;

    font-size: .61rem;

    font-weight: 850;

    letter-spacing: .035em;

    white-space: nowrap;

    transition:
        color .18s ease;
}

.app-shell-header--customer
.app-shell-nav__link:hover,
.app-shell-header--customer
.app-shell-nav__link:focus-visible {
    color:
        #f4efe6 !important;
}

.app-shell-header--customer
.app-shell-nav__link.is-active {
    color:
        #f5f0e7 !important;
}

.app-shell-header--customer
.app-shell-nav__link.is-active::after {
    content: "";

    position: absolute;

    right: 13px;
    bottom: 4px;
    left: 13px;

    height: 1px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d7ab3b,
            transparent
        );

    box-shadow:
        0
        0
        12px
        rgba(216, 173, 58, .36);
}


/*
|--------------------------------------------------------------------------
| Account control
|--------------------------------------------------------------------------
*/

.app-shell-header--customer
.app-shell-user {
    justify-self: end;

    min-width: 0;

    margin: 0;
}

.app-shell-header--customer
.app-shell-user > summary {
    min-width: 168px;
    min-height: 46px;

    padding:
        7px
        10px;

    border:
        1px solid
        rgba(255, 255, 255, .065) !important;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, .018) !important;

    box-shadow:
        inset
        0
        1px
        0
        rgba(255, 255, 255, .018) !important;
}

.app-shell-header--customer
.app-shell-user > summary:hover,
.app-shell-header--customer
.app-shell-user > summary:focus-visible,
.app-shell-header--customer
.app-shell-user[open] > summary {
    border-color:
        rgba(214, 175, 67, .18) !important;

    background:
        rgba(216, 174, 62, .034) !important;
}

.app-shell-header--customer
.app-shell-user__avatar {
    border-color:
        rgba(214, 175, 66, .26);
}

.app-shell-header--customer
.app-shell-user__context {
    color:
        rgba(247, 242, 232, .90);

    font-size: .55rem;

    font-weight: 900;

    letter-spacing: .055em;

    text-transform: uppercase;
}

.app-shell-header--customer
.app-shell-user__email {
    max-width: 115px;

    overflow: hidden;

    color:
        rgba(231, 223, 208, .36);

    font-size: .48rem;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Reserve — true far-right CTA
|--------------------------------------------------------------------------
*/

.app-shell-header--customer
.app-shell-nav__reserve-cta {
    position: absolute !important;

    top: 50% !important;
    right: 0 !important;

    width: 124px !important;
    min-width: 124px !important;
    height: 46px !important;
    min-height: 46px !important;

    margin: 0 !important;

    padding:
        0
        18px !important;

    border:
        1px solid
        rgba(249, 222, 151, .83) !important;

    border-radius:
        999px !important;

    color:
        #171108 !important;

    background:
        linear-gradient(
            135deg,
            #f2d996,
            #d7b052
        ) !important;

    box-shadow:
        0
        12px
        28px
        rgba(189, 140, 35, .17) !important;

    font-size: .57rem !important;

    font-weight: 950 !important;

    letter-spacing: .09em !important;

    text-transform: uppercase !important;

    transform:
        translateY(-50%) !important;
}

.app-shell-header--customer
.app-shell-nav__reserve-cta::before,
.app-shell-header--customer
.app-shell-nav__reserve-cta::after {
    display: none !important;
}

.app-shell-header--customer
.app-shell-nav__reserve-cta:hover,
.app-shell-header--customer
.app-shell-nav__reserve-cta:focus-visible {
    color:
        #110d06 !important;

    background:
        linear-gradient(
            135deg,
            #f7e3aa,
            #e2c06d
        ) !important;

    box-shadow:
        0
        15px
        34px
        rgba(201, 153, 44, .24) !important;

    transform:
        translateY(calc(-50% - 1px)) !important;
}


/* ==========================================================================
   COMPACT RENTAL CARDS — ENHANCED ONLY AFTER JS IS READY
   ========================================================================== */

.customer-rental-list.rentals-modal-enhanced {
    display: grid;

    gap: 12px;
}

.rental-summary-card {
    position: relative;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, .070);

    border-radius: 17px;

    background:
        radial-gradient(
            circle at 0% 50%,
            rgba(215, 174, 67, .040),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .031),
            rgba(255, 255, 255, .012)
        );

    box-shadow:
        0
        18px
        45px
        rgba(0, 0, 0, .11),
        inset
        0
        1px
        0
        rgba(255, 255, 255, .018);

    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.rental-summary-card:hover {
    border-color:
        rgba(214, 174, 65, .20);

    background:
        radial-gradient(
            circle at 0% 50%,
            rgba(215, 174, 67, .060),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .037),
            rgba(255, 255, 255, .014)
        );

    box-shadow:
        0
        21px
        50px
        rgba(0, 0, 0, .15),
        inset
        0
        1px
        0
        rgba(255, 255, 255, .02);

    transform:
        translateY(-1px);
}

.rental-summary-card::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(216, 174, 62, .22),
            transparent
        );

    pointer-events: none;
}

.rental-summary-card__trigger {
    display: grid;

    grid-template-columns:
        154px
        minmax(210px, 1.15fr)
        minmax(175px, .82fr)
        minmax(175px, .82fr)
        130px;

    align-items: center;

    gap: 19px;

    width: 100%;

    min-width: 0;

    padding:
        15px
        17px;

    border: 0;

    color: inherit;

    background: transparent;

    font: inherit;

    text-align: left;

    cursor: pointer;
}

.rental-summary-card__trigger:focus-visible {
    outline:
        2px solid
        rgba(225, 187, 85, .72);

    outline-offset:
        -3px;

    border-radius: 16px;
}


/*
|--------------------------------------------------------------------------
| Summary vehicle image
|--------------------------------------------------------------------------
*/

.rental-summary-card__media {
    display: grid;

    place-items: center;

    width: 100%;
    min-width: 0;
    height: 96px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, .055);

    border-radius: 11px;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(211, 170, 64, .080),
            transparent 60%
        ),
        rgba(2, 3, 4, .55);
}

.rental-summary-card__media
.customer-rental-card__media {
    display: grid !important;

    width: 100% !important;
    height: 100% !important;

    min-height: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

    border: 0 !important;

    border-radius: 0 !important;

    background: transparent !important;
}

.rental-summary-card__media
.vehicle-media {
    display: grid !important;

    place-items: center;

    width: 100% !important;
    height: 100% !important;

    min-height: 0 !important;

    margin: 0 !important;

    padding: 6px !important;

    border: 0 !important;

    background: transparent !important;
}

.rental-summary-card__media img {
    width: 100% !important;
    height: 100% !important;

    max-height: 88px;

    object-fit:
        contain !important;

    object-position:
        center !important;
}


/*
|--------------------------------------------------------------------------
| Summary identity
|--------------------------------------------------------------------------
*/

.rental-summary-card__identity {
    min-width: 0;
}

.rental-summary-card__eyebrow {
    display: block;

    margin-bottom: 5px;

    color:
        rgba(220, 180, 72, .82);

    font-size: .48rem;

    font-weight: 950;

    letter-spacing: .16em;

    text-transform: uppercase;
}

.rental-summary-card__title {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            1.04rem,
            1.35vw,
            1.30rem
        );

    font-weight: 600;

    line-height: 1.1;

    letter-spacing: -.02em;

    color: #f2eee6;
}

.rental-summary-card__reference {
    display: block;

    margin-top: 5px;

    overflow: hidden;

    color:
        rgba(228, 219, 203, .30);

    font-size: .47rem;

    line-height: 1.4;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Summary date blocks
|--------------------------------------------------------------------------
*/

.rental-summary-card__date {
    min-width: 0;

    padding-left: 17px;

    border-left:
        1px solid
        rgba(255, 255, 255, .055);
}

.rental-summary-card__date-label {
    display: block;

    margin-bottom: 5px;

    color:
        rgba(222, 213, 198, .34);

    font-size: .44rem;

    font-weight: 900;

    letter-spacing: .10em;

    text-transform: uppercase;
}

.rental-summary-card__date-value {
    display: block;

    overflow-wrap: anywhere;

    color:
        rgba(244, 239, 230, .79);

    font-size: .61rem;

    font-weight: 750;

    line-height: 1.45;
}


/*
|--------------------------------------------------------------------------
| Summary action/status
|--------------------------------------------------------------------------
*/

.rental-summary-card__action {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    justify-content: center;

    gap: 11px;

    min-width: 0;
}

.rental-summary-card__action
.status-pill {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    min-height: 25px;

    padding:
        5px
        9px;

    border-radius: 999px;

    font-size: .45rem;

    font-weight: 950;

    letter-spacing: .075em;

    text-transform: uppercase;

    white-space: nowrap;
}

.rental-summary-card__view {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color:
        rgba(225, 191, 102, .88);

    font-size: .51rem;

    font-weight: 850;

    white-space: nowrap;
}

.rental-summary-card__arrow {
    display: grid;

    width: 26px;
    height: 26px;

    place-items: center;

    border:
        1px solid
        rgba(213, 174, 69, .18);

    border-radius: 999px;

    background:
        rgba(213, 174, 69, .035);

    color: #deb94f;

    font-size: .80rem;

    transition:
        transform .18s ease,
        background .18s ease;
}

.rental-summary-card:hover
.rental-summary-card__arrow {
    background:
        rgba(213, 174, 69, .075);

    transform:
        translateX(2px);
}


/* ==========================================================================
   RENTAL DETAIL MODAL
   ========================================================================== */

body.rental-detail-modal-open {
    overflow: hidden;
}

.rental-detail-modal[hidden] {
    display: none !important;
}

.rental-detail-modal {
    position: fixed;

    inset: 0;

    z-index: 100000;

    display: grid;

    place-items: center;

    padding: 24px;
}

.rental-detail-modal__backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(0, 0, 0, .76);

    -webkit-backdrop-filter:
        blur(8px);

    backdrop-filter:
        blur(8px);
}

.rental-detail-modal__panel {
    position: relative;

    z-index: 1;

    display: grid;

    grid-template-rows:
        auto
        auto
        minmax(0, 1fr);

    width:
        min(
            1060px,
            calc(100vw - 48px)
        );

    max-height:
        min(
            900px,
            calc(100vh - 48px)
        );

    overflow: hidden;

    border:
        1px solid
        rgba(215, 176, 75, .20);

    border-radius: 23px;

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(211, 170, 59, .075),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #151513,
            #0c0d0d
        );

    box-shadow:
        0
        45px
        120px
        rgba(0, 0, 0, .62),
        inset
        0
        1px
        0
        rgba(255, 255, 255, .025);
}


/*
|--------------------------------------------------------------------------
| Modal heading
|--------------------------------------------------------------------------
*/

.rental-detail-modal__header {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 22px;

    padding:
        21px
        23px
        17px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .055);
}

.rental-detail-modal__eyebrow {
    display: block;

    margin-bottom: 5px;

    color:
        #d9b54f;

    font-size: .50rem;

    font-weight: 950;

    letter-spacing: .17em;

    text-transform: uppercase;
}

.rental-detail-modal__title {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            1.45rem,
            2.5vw,
            2.05rem
        );

    font-weight: 600;

    line-height: 1.05;

    letter-spacing: -.025em;

    color: #f4efe7;
}

.rental-detail-modal__reference {
    margin:
        5px
        0
        0;

    color:
        rgba(229, 220, 205, .34);

    font-size: .53rem;

    overflow-wrap: anywhere;
}

.rental-detail-modal__header-actions {
    display: flex;

    align-items: center;

    gap: 13px;
}

.rental-detail-modal__header-actions
.status-pill {
    min-height: 26px;

    padding:
        5px
        9px;

    border-radius: 999px;

    font-size: .46rem;

    font-weight: 950;

    letter-spacing: .07em;

    text-transform: uppercase;
}

.rental-detail-modal__close {
    display: grid;

    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    place-items: center;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, .085);

    border-radius: 999px;

    color:
        rgba(243, 238, 229, .74);

    background:
        rgba(255, 255, 255, .025);

    font-size: 1.14rem;

    line-height: 1;

    cursor: pointer;

    transition:
        border-color .18s ease,
        color .18s ease,
        background .18s ease;
}

.rental-detail-modal__close:hover,
.rental-detail-modal__close:focus-visible {
    border-color:
        rgba(218, 177, 69, .28);

    color: #f2d990;

    background:
        rgba(214, 174, 65, .055);
}


/*
|--------------------------------------------------------------------------
| Modal hero
|--------------------------------------------------------------------------
*/

.rental-detail-modal__hero {
    display: grid;

    grid-template-columns:
        205px
        minmax(0, 1fr);

    align-items: center;

    gap: 20px;

    padding:
        16px
        23px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .050);

    background:
        rgba(255, 255, 255, .010);
}

.rental-detail-modal__media {
    display: grid;

    place-items: center;

    height: 112px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, .055);

    border-radius: 12px;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(215, 174, 65, .075),
            transparent 60%
        ),
        rgba(2, 3, 4, .53);
}

.rental-detail-modal__media
.customer-rental-card__media {
    display: grid !important;

    width: 100% !important;
    height: 100% !important;

    min-height: 0 !important;

    margin: 0 !important;

    border: 0 !important;

    background: transparent !important;
}

.rental-detail-modal__media
.vehicle-media {
    display: grid !important;

    width: 100% !important;
    height: 100% !important;

    place-items: center;

    min-height: 0 !important;

    margin: 0 !important;

    padding: 7px !important;

    border: 0 !important;

    background: transparent !important;
}

.rental-detail-modal__media img {
    width: 100% !important;
    height: 100% !important;

    max-height: 104px;

    object-fit:
        contain !important;
}

.rental-detail-modal__quick-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 9px;
}

.rental-detail-modal__quick {
    min-width: 0;

    padding:
        12px
        13px;

    border:
        1px solid
        rgba(255, 255, 255, .055);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, .017);
}

.rental-detail-modal__quick-label {
    display: block;

    margin-bottom: 4px;

    color:
        rgba(220, 211, 195, .35);

    font-size: .44rem;

    font-weight: 900;

    letter-spacing: .10em;

    text-transform: uppercase;
}

.rental-detail-modal__quick-value {
    display: block;

    color:
        rgba(244, 239, 230, .82);

    font-size: .63rem;

    font-weight: 750;

    line-height: 1.45;
}


/*
|--------------------------------------------------------------------------
| Modal scrollable detail body
|--------------------------------------------------------------------------
*/

.rental-detail-modal__body {
    min-height: 0;

    overflow-y: auto;

    overscroll-behavior: contain;

    padding:
        19px
        23px
        24px;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(213, 174, 67, .28)
        transparent;
}

.rental-detail-modal__body::-webkit-scrollbar {
    width: 8px;
}

.rental-detail-modal__body::-webkit-scrollbar-thumb {
    border:
        2px solid
        transparent;

    border-radius: 999px;

    background:
        rgba(213, 174, 67, .24);

    background-clip:
        padding-box;
}


/*
|--------------------------------------------------------------------------
| Reframe the existing real booking card inside the modal
|--------------------------------------------------------------------------
*/

.rental-detail-modal
.customer-rental-card.is-open-in-rental-modal {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

    overflow: visible !important;

    border: 0 !important;

    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}

.rental-detail-modal
.customer-rental-card.is-open-in-rental-modal::before {
    display: none !important;
}

.rental-detail-modal
.customer-rental-card.is-open-in-rental-modal
> .customer-rental-card__media {
    display: none !important;
}

.rental-detail-modal
.customer-rental-card.is-open-in-rental-modal
.customer-rental-card__content {
    display: block !important;

    width: 100%;

    padding: 0 !important;
}

.rental-detail-modal
.customer-rental-card.is-open-in-rental-modal
.customer-rental-card__header {
    display: none !important;
}

.rental-detail-modal
.customer-rental-card.is-open-in-rental-modal
.customer-rental-meta {
    margin:
        0
        0
        11px !important;
}

.rental-detail-modal
.customer-rental-card.is-open-in-rental-modal
.customer-rental-card__status-copy {
    margin:
        8px
        0
        15px !important;

    padding:
        0
        2px;

    font-size: .61rem;

    line-height: 1.6;
}

.rental-detail-modal
.customer-rental-card.is-open-in-rental-modal
.staff-admin-permission-box {
    margin:
        12px
        0
        0 !important;

    padding:
        17px !important;

    border-radius:
        13px !important;
}

.rental-detail-modal
.customer-rental-card.is-open-in-rental-modal
.staff-admin-permission-box:first-of-type {
    margin-top:
        0 !important;
}

.rental-detail-modal
.customer-rental-card.is-open-in-rental-modal
.button {
    min-height: 41px;
}


/* ==========================================================================
   HEADER — MEDIUM DESKTOP
   ========================================================================== */

@media (max-width: 1260px) {
    .app-shell-header--customer
    .app-shell-header__inner {
        width:
            calc(100% - 42px);

        grid-template-columns:
            minmax(185px, auto)
            minmax(0, 1fr)
            auto;

        gap: 15px;

        padding-right: 123px;
    }

    .app-shell-header--customer
    .app-shell-brand__mark {
        flex-basis: 43px;

        width: 43px;
        height: 43px;
    }

    .app-shell-header--customer
    .app-shell-brand__name {
        font-size: .91rem;
    }

    .app-shell-header--customer
    .app-shell-nav__link {
        padding:
            0
            8px;

        font-size: .56rem;
    }

    .app-shell-header--customer
    .app-shell-user > summary {
        min-width: 120px;
    }

    .app-shell-header--customer
    .app-shell-user__email {
        display: none;
    }

    .app-shell-header--customer
    .app-shell-nav__reserve-cta {
        width: 108px !important;
        min-width: 108px !important;

        padding:
            0
            12px !important;
    }

    .rental-summary-card__trigger {
        grid-template-columns:
            130px
            minmax(180px, 1fr)
            minmax(145px, .75fr)
            minmax(145px, .75fr)
            112px;

        gap: 14px;
    }
}


/* ==========================================================================
   HEADER + RENTALS — TABLET
   ========================================================================== */

@media (max-width: 960px) {
    .app-shell-header--customer {
        min-height: auto;
    }

    .app-shell-header--customer
    .app-shell-header__inner {
        position: relative;

        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        grid-template-areas:
            "brand user"
            "nav nav";

        gap:
            8px
            18px;

        width:
            calc(100% - 28px);

        min-height: 0;

        padding:
            10px
            0
            8px;
    }

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

    .app-shell-header--customer
    .app-shell-user {
        grid-area: user;

        justify-self: end;
    }

    .app-shell-header--customer
    .app-shell-nav {
        grid-area: nav;

        justify-content: flex-start;

        width: 100%;

        padding:
            3px
            0
            0;

        overflow-x: auto;

        overflow-y: hidden;

        scrollbar-width: none;
    }

    .app-shell-header--customer
    .app-shell-nav::-webkit-scrollbar {
        display: none;
    }

    .app-shell-header--customer
    .app-shell-nav__link {
        flex: 0 0 auto;
    }

    .app-shell-header--customer
    .app-shell-nav__reserve-cta {
        position: static !important;

        top: auto !important;
        right: auto !important;

        order: 99;

        flex:
            0
            0
            auto;

        width: auto !important;
        min-width: 102px !important;
        height: 38px !important;
        min-height: 38px !important;

        margin-left: auto !important;

        transform: none !important;
    }

    .app-shell-header--customer
    .app-shell-nav__reserve-cta:hover,
    .app-shell-header--customer
    .app-shell-nav__reserve-cta:focus-visible {
        transform: none !important;
    }

    .rental-summary-card__trigger {
        grid-template-columns:
            122px
            minmax(190px, 1fr)
            minmax(150px, .85fr)
            minmax(150px, .85fr);

        gap: 13px;
    }

    .rental-summary-card__action {
        grid-column:
            2 / -1;

        flex-direction: row;

        align-items: center;

        justify-content: flex-end;
    }
}


/* ==========================================================================
   RENTALS — SMALL TABLET
   ========================================================================== */

@media (max-width: 760px) {
    .rental-summary-card__trigger {
        grid-template-columns:
            112px
            minmax(0, 1fr);

        gap:
            12px
            14px;

        padding:
            14px;
    }

    .rental-summary-card__media {
        grid-column: 1;
        grid-row:
            1 / span 2;

        height: 96px;
    }

    .rental-summary-card__identity {
        grid-column: 2;
    }

    .rental-summary-card__date {
        grid-column: 2;

        padding-left: 0;

        border-left: 0;
    }

    .rental-summary-card__date:nth-of-type(2) {
        display: none;
    }

    .rental-summary-card__action {
        grid-column:
            1 / -1;

        justify-content: space-between;

        padding-top: 10px;

        border-top:
            1px solid
            rgba(255, 255, 255, .050);
    }

    .rental-detail-modal {
        padding: 14px;
    }

    .rental-detail-modal__panel {
        width:
            calc(100vw - 28px);

        max-height:
            calc(100vh - 28px);

        border-radius: 19px;
    }

    .rental-detail-modal__hero {
        grid-template-columns:
            160px
            minmax(0, 1fr);
    }
}


/* ==========================================================================
   MOBILE HEADER
   ========================================================================== */

@media (max-width: 620px) {
    .app-shell-header--customer
    .app-shell-header__inner {
        width:
            calc(100% - 22px);

        gap: 7px;
    }

    .app-shell-header--customer
    .app-shell-brand {
        gap: 9px;
    }

    .app-shell-header--customer
    .app-shell-brand__mark {
        flex-basis: 39px;

        width: 39px;
        height: 39px;
    }

    .app-shell-header--customer
    .app-shell-brand__name {
        font-size: .78rem;
    }

    .app-shell-header--customer
    .app-shell-brand__name::after {
        font-size: .38rem;

        letter-spacing: .14em;
    }

    .app-shell-header--customer
    .app-shell-user > summary {
        min-width: 42px;

        width: 42px;
        height: 42px;

        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__link {
        min-height: 36px;

        padding:
            0
            9px;

        font-size: .52rem;
    }

    .app-shell-header--customer
    .app-shell-nav__reserve-cta {
        min-width: 94px !important;

        padding:
            0
            11px !important;

        font-size: .50rem !important;
    }


    /*
    |--------------------------------------------------------------------------
    | Mobile rental summary
    |--------------------------------------------------------------------------
    */

    .rental-summary-card {
        border-radius: 15px;
    }

    .rental-summary-card__trigger {
        grid-template-columns:
            1fr;

        gap: 11px;

        padding:
            13px;
    }

    .rental-summary-card__media {
        grid-column: 1;
        grid-row: auto;

        width: 100%;
        height: 145px;
    }

    .rental-summary-card__media img {
        max-height: 137px;
    }

    .rental-summary-card__identity,
    .rental-summary-card__date,
    .rental-summary-card__action {
        grid-column: 1;
    }

    .rental-summary-card__date {
        display: block !important;

        padding:
            10px
            0
            0;

        border-top:
            1px solid
            rgba(255, 255, 255, .045);

        border-left: 0;
    }

    .rental-summary-card__action {
        padding-top: 11px;
    }


    /*
    |--------------------------------------------------------------------------
    | Mobile modal = premium bottom sheet
    |--------------------------------------------------------------------------
    */

    .rental-detail-modal {
        align-items: end;

        padding: 0;
    }

    .rental-detail-modal__panel {
        width: 100%;

        max-height:
            calc(100dvh - 18px);

        border-right: 0;
        border-bottom: 0;
        border-left: 0;

        border-radius:
            22px
            22px
            0
            0;
    }

    .rental-detail-modal__header {
        padding:
            18px
            16px
            14px;
    }

    .rental-detail-modal__header-actions
    .status-pill {
        display: none;
    }

    .rental-detail-modal__hero {
        grid-template-columns:
            1fr;

        gap: 11px;

        padding:
            13px
            16px;
    }

    .rental-detail-modal__media {
        height: 125px;
    }

    .rental-detail-modal__quick-grid {
        grid-template-columns:
            1fr
            1fr;
    }

    .rental-detail-modal__body {
        padding:
            15px
            16px
            24px;
    }

    .rental-detail-modal
    .customer-rental-card.is-open-in-rental-modal
    .customer-rental-meta {
        grid-template-columns:
            1fr !important;
    }

    .rental-detail-modal
    .customer-rental-card.is-open-in-rental-modal
    .staff-admin-permission-box {
        padding:
            14px !important;
    }

    .rental-detail-modal
    .customer-rental-card.is-open-in-rental-modal
    .button {
        width: 100%;

        justify-content: center;
    }
}


/* ==========================================================================
   VERY SMALL MOBILE
   ========================================================================== */

@media (max-width: 390px) {
    .app-shell-header--customer
    .app-shell-brand__name {
        max-width: 150px;

        overflow: hidden;

        text-overflow: ellipsis;
    }

    .rental-detail-modal__quick-grid {
        grid-template-columns:
            1fr;
    }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .rental-summary-card,
    .rental-summary-card__arrow,
    .app-shell-header--customer
    .app-shell-nav__link {
        transition: none !important;
    }
}


/*
|--------------------------------------------------------------------------
| Royal Servicess LLC
| Customer Rental Experience v3.1
|--------------------------------------------------------------------------
| Final visibility correction + premium header proportions.
|--------------------------------------------------------------------------
*/


/* ==========================================================================
   CRITICAL: HIDDEN ORIGINAL RENTAL CARDS
   ========================================================================== */

/*
 * Previous rental styles use display:grid !important.
 * That can override the browser's built-in [hidden] rule.
 *
 * When JavaScript has created the compact rental row, the original detailed
 * rental card must remain hidden until it is moved into the details modal.
 */

.customer-rental-list.rentals-modal-enhanced
> .customer-rental-card[hidden] {
    display: none !important;
}


/*
 * Once moved into the modal, JavaScript removes hidden before applying this
 * class, so the real booking card becomes visible only inside the modal.
 */

.rental-detail-modal
.customer-rental-card.is-open-in-rental-modal {
    display: block !important;
}


/* ==========================================================================
   RENTAL HISTORY — PREMIUM CLOSED STATE
   ========================================================================== */

.customer-rental-list.rentals-modal-enhanced {
    gap: 11px !important;
}

.customer-rental-list.rentals-modal-enhanced
.rental-summary-card {
    min-height: 118px;
}

.customer-rental-list.rentals-modal-enhanced
.rental-summary-card__trigger {
    min-height: 118px;
}

.customer-rental-list.rentals-modal-enhanced
.rental-summary-card__media {
    height: 88px;
}

.customer-rental-list.rentals-modal-enhanced
.rental-summary-card__title {
    font-size:
        clamp(
            1.08rem,
            1.35vw,
            1.34rem
        );
}

.customer-rental-list.rentals-modal-enhanced
.rental-summary-card__reference {
    max-width: 330px;
}

.customer-rental-list.rentals-modal-enhanced
.rental-summary-card__date {
    min-height: 48px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


/* ==========================================================================
   HEADER — PREMIUM FINAL PROPORTIONS
   ========================================================================== */

.app-shell-header--customer
.app-shell-header__inner {
    width:
        min(
            1600px,
            calc(100% - 88px)
        );

    min-height: 82px;

    grid-template-columns:
        minmax(245px, auto)
        minmax(0, 1fr)
        minmax(175px, auto);

    gap: 34px;

    padding-right: 146px;
}


/*
|--------------------------------------------------------------------------
| Stronger brand presence
|--------------------------------------------------------------------------
*/

.app-shell-header--customer
.app-shell-brand {
    gap: 13px;
}

.app-shell-header--customer
.app-shell-brand__mark {
    flex-basis: 50px;

    width: 50px;
    height: 50px;
}

.app-shell-header--customer
.app-shell-brand__name {
    font-size: 1.13rem;
}

.app-shell-header--customer
.app-shell-brand__name::after {
    margin-top: 5px;

    font-size: .45rem;

    letter-spacing: .20em;
}


/*
|--------------------------------------------------------------------------
| Navigation balance
|--------------------------------------------------------------------------
*/

.app-shell-header--customer
.app-shell-nav {
    justify-self: center;

    gap: 3px;
}

.app-shell-header--customer
.app-shell-nav__link {
    min-height: 46px;

    padding:
        0
        14px;

    font-size: .62rem;
}


/*
|--------------------------------------------------------------------------
| Account block
|--------------------------------------------------------------------------
*/

.app-shell-header--customer
.app-shell-user {
    justify-self: end;
}

.app-shell-header--customer
.app-shell-user > summary {
    min-width: 178px;

    min-height: 48px;

    padding:
        7px
        11px;
}


/*
|--------------------------------------------------------------------------
| Reserve button
|--------------------------------------------------------------------------
*/

.app-shell-header--customer
.app-shell-nav__reserve-cta {
    width: 128px !important;
    min-width: 128px !important;

    height: 48px !important;
    min-height: 48px !important;
}


/* ==========================================================================
   HEADER — LARGE LAPTOP
   ========================================================================== */

@media (max-width: 1360px) {
    .app-shell-header--customer
    .app-shell-header__inner {
        width:
            calc(100% - 52px);

        grid-template-columns:
            minmax(205px, auto)
            minmax(0, 1fr)
            minmax(132px, auto);

        gap: 18px;

        padding-right: 123px;
    }

    .app-shell-header--customer
    .app-shell-brand__mark {
        flex-basis: 44px;

        width: 44px;
        height: 44px;
    }

    .app-shell-header--customer
    .app-shell-brand__name {
        font-size: .95rem;
    }

    .app-shell-header--customer
    .app-shell-nav__link {
        padding:
            0
            9px;

        font-size: .57rem;
    }

    .app-shell-header--customer
    .app-shell-user > summary {
        min-width: 132px;
    }

    .app-shell-header--customer
    .app-shell-nav__reserve-cta {
        width: 108px !important;
        min-width: 108px !important;
    }
}


/* ==========================================================================
   TABLET HEADER
   ========================================================================== */

@media (max-width: 960px) {
    .app-shell-header--customer
    .app-shell-header__inner {
        width:
            calc(100% - 30px);

        min-height: 0;

        padding:
            11px
            0
            8px;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap:
            9px
            18px;
    }

    .app-shell-header--customer
    .app-shell-brand__mark {
        flex-basis: 42px;

        width: 42px;
        height: 42px;
    }

    .app-shell-header--customer
    .app-shell-nav {
        padding-top: 4px;
    }

    .app-shell-header--customer
    .app-shell-nav__reserve-cta {
        width: auto !important;

        min-width: 104px !important;

        height: 39px !important;
        min-height: 39px !important;
    }
}


/* ==========================================================================
   MOBILE RENTAL ROW
   ========================================================================== */

@media (max-width: 620px) {
    .customer-rental-list.rentals-modal-enhanced
    .rental-summary-card {
        min-height: 0;
    }

    .customer-rental-list.rentals-modal-enhanced
    .rental-summary-card__trigger {
        min-height: 0;
    }

    .customer-rental-list.rentals-modal-enhanced
    .rental-summary-card__media {
        height: 142px;
    }

    .customer-rental-list.rentals-modal-enhanced
    .rental-summary-card__identity {
        padding-top: 2px;
    }

    .customer-rental-list.rentals-modal-enhanced
    .rental-summary-card__action {
        margin-top: 2px;
    }
}
