/* Provisional flight booking (visa dummy booking) */
body.flight-book-page {
    --fb-blue: #1c4494;
    --fb-green: #21bc2f;
    --fb-bg: #f1f2f6;
    --fb-text: #1a1a2e;
    --fb-muted: #6b7286;
    font-family: 'GM', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.flight-book-page,
body.flight-book-page input,
body.flight-book-page select,
body.flight-book-page button,
body.flight-book-page a,
body.flight-book-page label,
body.flight-book-page h1,
body.flight-book-page h2,
body.flight-book-page p,
body.flight-book-page span,
body.flight-book-page strong {
    font-family: inherit;
}

.flight-book__hero {
    background: linear-gradient(135deg, #1c4494 0%, #2f6fed 100%);
    color: #fff;
    padding: calc(var(--navbar-clearance, 88px) + var(--smart-app-banner-height, 0px) + 0.85rem) 0 0.95rem;
}

html[dir="ltr"] .flight-book__hero {
    padding: calc(var(--navbar-clearance, 88px) + var(--smart-app-banner-height, 0px) + 1.9rem) 0 0.95rem;
}

/* Enter after "Book for visa" transition from flight details */
body.flight-visa-entering .flight-book__hero {
    animation: flight-book-enter 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.flight-visa-entering .flight-book__content {
    animation: flight-book-enter 0.48s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s both;
}

@keyframes flight-book-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.flight-visa-entering .flight-book__hero,
    body.flight-visa-entering .flight-book__content {
        animation: none;
    }
}

.flight-book__hero-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    /* Match .flight-book__layout so the title lines up with the cards */
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
    text-align: start;
}

.flight-book__hero h1 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: start;
    flex: 1;
    min-width: 0;
}

.flight-book__back {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    text-decoration: none;
    flex-shrink: 0;
}

html[dir="rtl"] .flight-book__back i {
    transform: scaleX(-1);
}

html[dir="ltr"] .flight-book__hero-inner {
    direction: ltr;
}

html[dir="rtl"] .flight-book__hero-inner {
    direction: rtl;
}

.flight-book__content {
    background: var(--fb-bg);
    min-height: 50vh;
    padding: 0.75rem 0 2rem;
}

.flight-book__layout {
    max-width: 640px;
    display: grid;
    gap: 0.75rem;
}

/* display:grid must not override the HTML hidden attribute */
#flightBookMain:not([hidden]),
#hotelBookMain:not([hidden]) {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}

#flightBookMain[hidden],
#flightBookAuthGate[hidden],
#flightBookMissing[hidden],
#hotelBookMain[hidden],
#hotelBookAuthGate[hidden],
#hotelBookMissing[hidden] {
    display: none !important;
}

.flight-book__cols {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.flight-book__col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    align-content: start;
    height: fit-content;
}

@media (min-width: 900px) {
    .flight-book__hero {
        margin-top: 0;
        padding-bottom: 27px;
    }

    .flight-book__hero-inner,
    .flight-book__layout {
        max-width: 1040px;
    }

    .flight-book__content {
        padding-bottom: 1.5rem;
    }

    /*
     * Keep physical columns identical in LTR + RTL:
     * itinerary on the left, travelers/form on the right.
     * Force direction:ltr on the grid so RTL page direction
     * does not reverse/stack the columns.
     */
    .flight-book__cols {
        display: grid;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
        gap: 1rem;
        align-items: start;
        direction: ltr;
    }

    .flight-book__col--itin {
        grid-column: 1;
        grid-row: 1;
        position: sticky;
        top: calc(var(--navbar-clearance, 88px) + var(--smart-app-banner-height, 0px) + 0.75rem);
        align-self: start;
        width: 100%;
        max-width: 100%;
        height: fit-content;
        min-width: 0;
    }

    .flight-book__col--form {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        width: 100%;
        max-width: 100%;
        height: fit-content;
        min-width: 0;
    }

    /* Preserve Arabic/RTL text flow inside each column */
    html[dir="rtl"] .flight-book__col {
        direction: rtl;
    }
}

.flight-book__state {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.flight-book__state i {
    display: block;
    font-size: 1.5rem;
    color: var(--fb-blue);
    margin: 0 auto 0.55rem;
}

.flight-book__state h2 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fb-text);
    text-align: center;
    width: 100%;
}

.flight-book__state p {
    color: var(--fb-muted);
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
    width: 100%;
}

.flight-book__state .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    text-align: center;
    align-self: center;
}

/* Beat global html[dir=rtl] text-align:right on h2/p/a */
html[dir="rtl"] .flight-book__state,
html[dir="rtl"] .flight-book__state h2,
html[dir="rtl"] .flight-book__state p,
html[dir="rtl"] .flight-book__state span,
html[dir="rtl"] .flight-book__state a,
html[dir="rtl"] .flight-book__state .btn-primary {
    text-align: center !important;
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

html[dir="rtl"] .flight-book__state .btn-primary {
    align-self: center;
    margin-inline: auto;
}

/* Full-page create-ticket overlay */
.fb-loading {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.fb-loading[hidden] {
    display: none !important;
}

.fb-loading__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(28, 68, 148, 0.35), transparent 70%),
        rgba(10, 18, 40, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fb-loading-fade 0.28s ease-out;
}

.fb-loading__card {
    position: relative;
    z-index: 1;
    width: min(100%, 360px);
    text-align: center;
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 24px;
    background: linear-gradient(165deg, #ffffff 0%, #f3f6ff 100%);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    animation: fb-loading-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fb-loading__card h2,
.fb-loading__card p {
    width: 100%;
    text-align: center !important;
    margin-inline: auto;
}

.fb-loading__orbit {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 1.25rem;
}

.fb-loading__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #1c4494;
    border-right-color: rgba(47, 111, 237, 0.45);
    animation: fb-loading-spin 1s linear infinite;
}

.fb-loading__ring--2 {
    inset: 10px;
    border-top-color: #2f6fed;
    border-right-color: transparent;
    border-bottom-color: rgba(28, 68, 148, 0.25);
    animation-duration: 1.45s;
    animation-direction: reverse;
}

.fb-loading__plane {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1c4494;
    font-size: 1.45rem;
    animation: fb-loading-pulse 1.4s ease-in-out infinite;
}

.fb-loading__card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 750;
    color: #111827;
    line-height: 1.3;
}

.fb-loading__card p {
    margin: 0;
    color: #6b7286;
    font-size: 0.9rem;
    line-height: 1.5;
}

.fb-loading__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 1.15rem auto 0;
    width: 100%;
}

.fb-loading__dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2f6fed;
    animation: fb-loading-dot 1.1s ease-in-out infinite;
}

.fb-loading__dots span:nth-child(2) { animation-delay: 0.15s; }
.fb-loading__dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes fb-loading-spin {
    to { transform: rotate(360deg); }
}

@keyframes fb-loading-pulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes fb-loading-dot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
    40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes fb-loading-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fb-loading-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

body.fb-loading-open {
    overflow: hidden;
}

.flight-book__summary,
.flight-book__card {
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 1px 4px rgba(109, 109, 109, 0.1);
    padding: 0.7rem 0.85rem;
}

.flight-book__summary.fb-itin {
    display: grid;
    gap: 0.35rem;
    padding: 0.55rem 0.65rem 0.5rem;
    height: fit-content;
    align-content: start;
}

/* Hide leftover price foot if older cached JS still renders it */
.fb-itin__foot,
.fb-itin__carrier {
    display: none !important;
}

.fb-itin__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #eef1f6;
}

.fb-itin__cities {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    flex: 1 1 auto;
}

.fb-itin__city {
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--fb-text);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-itin__arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--fb-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    flex-shrink: 0;
}

.fb-itin__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.fb-itin__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--fb-blue);
    font-size: 0.72rem;
    font-weight: 700;
}

.fb-itin__carrier {
    font-size: 0.74rem;
    font-weight: 550;
    color: var(--fb-muted);
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-itin__leg {
    display: grid;
    gap: 0.25rem;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    background: #f7f8fb;
}

.fb-itin__leg + .fb-itin__leg {
    margin-top: 0;
}

.fb-itin__leg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.fb-itin__leg-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--fb-blue);
    line-height: 1.2;
}

.fb-itin__leg-label i {
    font-size: 0.7rem;
}

.fb-itin__leg-date {
    font-size: 0.72rem;
    font-weight: 550;
    color: #8a91a5;
    line-height: 1.2;
    white-space: nowrap;
}

.fb-itin__leg-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.fb-itin__airline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: 3.2rem;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.58rem;
    font-weight: 650;
    line-height: 1.1;
    color: #3a4156;
}

.fb-itin__airline span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
    max-width: 3.2rem;
}

.fb-itin__logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 5px;
    background: #fff;
}

.fb-itin__logo--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fb-blue);
    background: #fff;
}

.fb-itin__times {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(3.6rem, 4.8rem) minmax(0, 1fr);
    gap: 0.25rem;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.fb-itin__end {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
    justify-items: start;
}

.fb-itin__end strong {
    font-size: 1rem;
    font-weight: 750;
    color: var(--fb-text);
    line-height: 1.15;
}

.fb-itin__end small {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--fb-blue);
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.fb-itin__end em {
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 450;
    color: var(--fb-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
}

.fb-itin__end--arr {
    justify-items: end;
    text-align: end;
}

html[dir="rtl"] .fb-itin__end {
    justify-items: start;
    text-align: start;
}

html[dir="rtl"] .fb-itin__end--arr {
    justify-items: end;
    text-align: end;
}

.fb-itin__path {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-width: 0;
    font-size: 0.66rem;
    font-weight: 600;
    color: #8a91a5;
    text-align: center;
    line-height: 1.15;
}

.fb-itin__line {
    width: 100%;
    max-width: 4.2rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #a8b3c9, transparent);
    position: relative;
}

.fb-itin__line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fb-blue);
    transform: translate(-50%, -50%);
}

.fb-itin__via {
    font-size: 0.62rem;
    font-weight: 500;
    color: #9aa3b5;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-itin__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.5rem;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #8a91a5;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, background 0.15s ease;
}

.fb-itin__toggle i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.fb-itin.is-expanded .fb-itin__toggle {
    color: var(--fb-blue);
}

.fb-itin__toggle:hover,
.fb-itin__toggle:focus-visible {
    color: var(--fb-blue);
    background: #eef2ff;
    outline: none;
}

.fb-itin__details {
    display: grid;
    gap: 0.4rem;
    padding-top: 0.15rem;
    border-top: 1px solid #eef1f6;
    margin-top: 0.05rem;
    align-content: start;
}

.fb-itin__details[hidden] {
    display: none !important;
}

.fb-detail__itin {
    display: grid;
    gap: 0;
    /* Kill global `section { padding: 3rem 0 }` — that was the huge empty space */
    padding: 0 !important;
    margin: 0;
    border-radius: 8px;
    background: #f7f8fb;
    overflow: hidden;
    height: fit-content;
    align-content: start;
}

.fb-detail__itin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #3a4156;
    border-bottom: 1px solid rgba(28, 68, 148, 0.08);
}

.fb-detail__itin-head span:last-child {
    color: #5c6478;
    font-weight: 650;
    white-space: nowrap;
}

.fb-detail__segment {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.4rem 0.6rem 0.45rem;
}

.fb-detail__seg-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.fb-detail__logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
}

.fb-detail__logo--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fb-blue);
    font-size: 0.72rem;
}

.fb-detail__seg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.4rem;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 750;
    color: var(--fb-text);
    min-width: 0;
}

.fb-detail__op {
    color: #6b7286;
    font-weight: 500;
    font-size: 0.74rem;
}

.fb-detail__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.38rem;
    border-radius: 999px;
    border: 1px solid rgba(28, 68, 148, 0.16);
    background: #fff;
    color: #3a4156;
    font-size: 0.64rem;
    font-weight: 650;
    text-transform: capitalize;
}

.fb-detail__timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-inline-start: 0.1rem;
}

.fb-detail__timeline::before {
    content: '';
    position: absolute;
    inset-inline-start: calc(0.1rem + 0.4rem);
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: #cfd5e6;
    border-radius: 1px;
}

.fb-detail__row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items: start;
}

.fb-detail__row--mid {
    align-items: center;
    min-height: 1.1rem;
}

.fb-detail__dot {
    width: 9px;
    height: 9px;
    margin: 0.35rem auto 0;
    border-radius: 50%;
    border: 2px solid #a8b0c4;
    background: #fff;
    box-sizing: border-box;
}

.fb-detail__plane {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-inline: auto;
    color: var(--fb-blue);
    font-size: 0.66rem;
    background: #f7f8fb;
    transform: rotate(90deg);
}

.fb-detail__dur {
    font-size: 0.74rem;
    font-weight: 650;
    color: #6b7286;
    line-height: 1.2;
}

.fb-detail__point {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.4rem;
    min-width: 0;
}

.fb-detail__point strong {
    font-size: 0.92rem;
    line-height: 1.25;
    color: var(--fb-text);
    font-weight: 750;
}

.fb-detail__place {
    color: #3a4156;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
}

.fb-detail__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.06rem 0.36rem;
    border-radius: 999px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--fb-blue);
    font-size: 0.64rem;
    font-weight: 700;
    white-space: nowrap;
}

.fb-detail__arrives {
    flex: 1 0 100%;
    margin-top: 0.05rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--fb-blue);
}

.fb-detail__layover {
    margin: 0;
    padding: 0.35rem 0.65rem;
    border-block: 1px solid rgba(28, 68, 148, 0.1);
    background: #eef2ff;
    color: var(--fb-text);
    font-size: 0.78rem;
    font-weight: 650;
}

.fb-detail__layover--separate {
    background: #fff7ed;
    color: #9a3412;
    border-color: rgba(194, 65, 12, 0.2);
}

.fb-detail__layover-title {
    line-height: 1.35;
}

.fb-detail__layover-warn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-weight: 500;
    font-size: 0.74rem;
    line-height: 1.35;
}

/* Reuse shared separate-flight badge from flights.css when available;
   keep local fallback so booking page still looks correct alone. */
.fb-detail__layover-warn .flight-separate-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(194, 65, 12, 0.28);
    background: #ffedd5;
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.2;
}

.fb-detail__layover-warn .flight-separate-badge__info {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fb-detail__layover-warn .flight-separate-badge__info-btn {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #c2410c;
    font-size: 0.85rem;
    line-height: 1;
}

.fb-detail__layover-warn .flight-separate-badge__info-btn::-webkit-details-marker {
    display: none;
}

.fb-detail__layover-warn .flight-separate-badge__info-btn::marker {
    content: '';
}

.fb-detail__layover-warn .flight-separate-badge__tip {
    position: absolute;
    z-index: 5;
    top: calc(100% + 0.4rem);
    inset-inline-start: 0;
    width: min(16.5rem, 72vw);
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(194, 65, 12, 0.22);
    background: #fff7ed;
    color: #7c2d12;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: start;
}

html[dir="rtl"] .fb-detail__layover-warn .flight-separate-badge,
html[dir="rtl"] .fb-detail__layover-warn .flight-separate-badge__tip {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

.fb-itin__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding-top: 0.4rem;
    margin: 0;
    border-top: 1px solid #eef1f6;
    min-height: 0;
}

.fb-itin__price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.28rem;
    color: var(--fb-text);
    line-height: 1;
}

.fb-itin__price span {
    font-size: 0.76rem;
    font-weight: 650;
    color: var(--fb-muted);
}

.fb-itin__price strong {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}

.fb-itin__foot > small {
    font-size: 0.74rem;
    font-weight: 500;
    color: #8a91a5;
    line-height: 1.2;
    margin: 0;
}

@media (max-width: 420px) {
    .fb-itin__leg-row {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .fb-itin__airline {
        flex-direction: row;
        width: auto;
        max-width: none;
        font-size: 0.72rem;
        gap: 0.35rem;
    }

    .fb-itin__airline span {
        max-width: none;
        -webkit-line-clamp: 1;
    }

    .fb-itin__times {
        flex: 1 1 100%;
        width: 100%;
    }
}

.flight-book__card--toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
    text-align: start;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--fb-text);
    line-height: 1.35;
}

.flight-book__card--toggle .flight-book__chevron {
    margin-inline-start: auto;
    color: #8a91a5;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.flight-book__card--toggle[aria-expanded="true"] .flight-book__chevron {
    transform: rotate(180deg);
}

.flight-book__card-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(83, 107, 123, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.flight-book__card-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
}

.flight-book__card-head h2 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--fb-text);
    line-height: 1.35;
}

.flight-book__what {
    background: #fff;
    border-radius: 9px;
    padding: 0;
    color: var(--fb-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-top: 0;
    border: 1px solid transparent;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        max-height 0.32s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.24s ease,
        transform 0.28s cubic-bezier(0.32, 0.72, 0, 1),
        padding 0.28s ease,
        margin-top 0.28s ease,
        border-color 0.2s ease;
}

.flight-book__what.is-open {
    max-height: 32rem;
    opacity: 1;
    transform: translateY(0);
    padding: 0.75rem 0.9rem 0.85rem;
    margin-top: -0.15rem;
    border-color: #e8eaef;
    pointer-events: auto;
}

.flight-book__what.is-open .flight-book__what-list li {
    animation: fb-what-item-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.flight-book__what.is-open .flight-book__what-list li:nth-child(1) { animation-delay: 40ms; }
.flight-book__what.is-open .flight-book__what-list li:nth-child(2) { animation-delay: 70ms; }
.flight-book__what.is-open .flight-book__what-list li:nth-child(3) { animation-delay: 100ms; }
.flight-book__what.is-open .flight-book__what-list li:nth-child(4) { animation-delay: 130ms; }

@keyframes fb-what-item-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .flight-book__what {
        transition: none;
        transform: none;
    }

    .flight-book__what.is-open .flight-book__what-list li {
        animation: none;
    }
}

.flight-book__what p {
    margin: 0 0 0.55rem;
    color: var(--fb-text);
}

.flight-book__what-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.4rem;
}

.flight-book__what-list li {
    position: relative;
    padding-inline-start: 1.15rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--fb-muted);
}

.flight-book__what-list li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.45em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--fb-blue, #4361ee);
}

html[dir="rtl"] .flight-book__what,
html[dir="rtl"] .flight-book__what-list li {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

.flight-book__empty {
    padding: 0.25rem 0 0.45rem;
}

.flight-book__empty p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--fb-text);
}

.flight-book__hint {
    color: #8a91a5;
    font-size: 0.82rem !important;
    margin-top: 0.2rem !important;
}

.flight-book__travelers {
    list-style: none;
    margin: 0;
    padding: 0;
}

.flight-book__traveler {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0;
    border-top: 1px solid #f1f2f6;
}

.flight-book__traveler img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.flight-book__traveler-meta {
    flex: 1;
    min-width: 0;
}

.flight-book__traveler-meta strong,
.flight-book__traveler-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flight-book__traveler-meta strong {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--fb-text);
}

.flight-book__traveler-meta span {
    color: var(--fb-muted);
    font-size: 0.84rem;
    font-weight: 400;
    margin-top: 0.1rem;
}

.flight-book__traveler-remove {
    border: none;
    background: transparent;
    color: #da2325;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flight-book__traveler-actions {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.flight-book__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 42px;
    padding: 0.55rem 0.75rem;
    border-radius: 9px;
    font-weight: 650;
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
    font-family: inherit;
}

.flight-book__btn--outline {
    background: #fff;
    border: 1px solid var(--fb-blue);
    color: var(--fb-blue);
}

.flight-book__row-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 48px;
}

.flight-book__row-card > span:nth-child(2) {
    flex: 1;
    font-weight: 550;
    font-size: 0.92rem;
    color: var(--fb-text);
    line-height: 1.3;
}

.flight-book__switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.flight-book__switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.flight-book__switch span {
    position: absolute;
    inset: 0;
    background: #da2325;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.flight-book__switch span::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 3px;
    inset-inline-start: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.flight-book__switch input:checked + span {
    background: var(--fb-green);
}

.flight-book__switch input:checked + span::after {
    transform: translateX(20px);
}

html[dir="rtl"] .flight-book__switch input:checked + span::after {
    transform: translateX(-20px);
}

.flight-book__row-card--select {
    align-items: center;
    gap: 0.7rem;
    min-height: 56px;
    padding-block: 0.55rem;
}

.flight-book__select-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.flight-book__select-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #8a91a5;
    line-height: 1.2;
}

/* Document language picker (custom dark menu) */
.fb-lang {
    position: relative;
    width: 100%;
    min-width: 0;
}

.fb-lang__native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.fb-lang__trigger.flight-book__select,
.flight-book__select {
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding-block: 0;
    padding-inline: 1rem 2.1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color, #e0e3e7);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--fb-text, #1a1a2e);
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: start;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    align-items: center;
}

.fb-lang__trigger.flight-book__select:hover,
.flight-book__select:hover {
    border-color: #c7cdd8;
}

.fb-lang__trigger.flight-book__select:focus,
.fb-lang.is-open .fb-lang__trigger.flight-book__select,
.flight-book__select:focus {
    outline: none;
    border-color: var(--primary-color, #4361ee);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234361ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

html[dir="rtl"] .fb-lang__trigger.flight-book__select,
html[dir="rtl"] .flight-book__select {
    padding-inline: 1rem 2.1rem;
    background-position: left 0.75rem center;
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

.fb-lang__value {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: start;
}

.fb-lang__menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 0.4rem);
    inset-inline: 0;
    margin: 0;
    padding: 0.45rem;
    list-style: none;
    background: #4a4a4a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.fb-lang__menu[hidden] {
    display: none !important;
}

.fb-lang__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.62rem 0.85rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: start;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

html[dir="rtl"] .fb-lang__option {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

.fb-lang__option:hover,
.fb-lang__option:focus,
.fb-lang__option.is-active {
    outline: none;
    background: #007aff;
    color: #fff;
}

.fb-lang__option-label {
    flex: 1;
    min-width: 0;
}

.fb-lang__check {
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0;
    color: #fff;
}

.fb-lang__option.is-selected .fb-lang__check {
    opacity: 1;
}

.flight-book__checkout {
    padding: 1rem 1.05rem 1.05rem;
    border: 1px solid #e8eaef;
    box-shadow: none;
}

.flight-book__checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0 0 0.85rem;
    border-bottom: 1px solid #eef1f6;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fb-text);
}

.flight-book__checkout-row strong {
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--fb-blue, #1c4494);
    white-space: nowrap;
}

.flight-book__checkout-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding-top: 0.85rem;
}

.flight-book__checkout-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
    margin: 0;
    padding: 0.35rem 0.45rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: start;
    color: inherit;
    transition: background 0.15s ease;
}

.flight-book__checkout-balance:hover,
.flight-book__checkout-balance:focus-visible {
    background: #f5f7fb;
    outline: none;
}

html[dir="rtl"] .flight-book__checkout-balance {
    align-items: flex-start;
}

.flight-book__checkout-balance-value {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #111827;
    min-width: 0;
}

.flight-book__checkout-balance-value i {
    font-size: 0.9rem;
    color: #c9891a;
    flex-shrink: 0;
}

.flight-book__checkout-balance-value strong {
    font-size: 1rem;
    font-weight: 750;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flight-book__checkout-balance > span {
    font-size: 0.78rem;
    font-weight: 500;
    color: #8a91a5;
    line-height: 1.3;
}

.flight-book__create {
    flex: 1 1 auto;
    width: auto;
    min-width: 9.5rem;
    max-width: 58%;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--fb-green);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-family: inherit;
    overflow: visible;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    box-shadow: none;
}

.flight-book__create span,
html[dir="rtl"] .flight-book__create span,
html[dir="ltr"] .flight-book__create span {
    display: block;
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: center !important;
}

.flight-book__create:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.flight-book__error {
    color: #da2325;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.45;
    margin: 0.65rem 0 0;
    text-align: start;
}

.flight-book__error:not([hidden]) {
    margin-bottom: 0;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e8eaef;
}

.flight-book__error:not([hidden]) + .flight-book__checkout-foot {
    padding-top: 0.75rem;
}

.flight-book__error--credits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem 0.75rem;
    margin-top: 0.75rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff5f5;
    color: #b42318;
    box-shadow: none;
}

.flight-book__error--credits:not([hidden]) {
    margin-bottom: 0;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #fecaca;
}

.flight-book__credits-msg {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.45rem;
    flex: 1 1 12rem;
    min-width: 0;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: start;
}

.flight-book__credits-msg i {
    margin-top: 0.15rem;
    color: #e11d48;
    flex-shrink: 0;
}

.flight-book__topup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(28, 68, 148, 0.2);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--fb-blue, #1c4494);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
}

.flight-book__topup-link:hover,
.flight-book__topup-link:focus-visible {
    background: #eef3ff;
    color: #153572;
    outline: none;
}

/* Buy points sheet (booking page) */
.book-credits-sheet .book-credits-sheet__panel {
    display: flex;
    flex-direction: column;
    box-shadow: none;
    padding-bottom: 0;
    overflow: hidden;
}

@media (min-width: 720px) {
    .book-credits-sheet .book-credits-sheet__panel {
        max-height: min(86vh, 720px);
        height: min(86vh, 720px);
    }
}

.book-credits-sheet__sub {
    margin: 0.15rem 0 0;
    padding: 0 0.15rem;
    color: #6b7280;
    font-size: 0.86rem;
    line-height: 1.4;
    text-align: start;
}

.book-credits-sheet__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.5rem 1rem 1rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.book-credits-sheet__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 10rem;
    color: #6b7280;
    text-align: center;
}

/* display:flex above must not override the HTML hidden attribute */
.book-credits-sheet__loading[hidden],
.book-credits-packages[hidden],
.book-credits-sheet__error[hidden] {
    display: none !important;
}

.book-credits-sheet__spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(28, 68, 148, 0.15);
    border-top-color: var(--fb-blue, #1c4494);
    animation: book-credits-spin 0.75s linear infinite;
}

@keyframes book-credits-spin {
    to { transform: rotate(360deg); }
}

.book-credits-sheet__error {
    margin: 0.65rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b42318;
    font-size: 0.85rem;
    text-align: start;
}

.book-credits-packages {
    display: grid;
    gap: 0.65rem;
}

.book-credits-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.85rem 0.9rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    text-align: start;
    cursor: pointer;
    font: inherit;
    color: inherit;
    box-shadow: none !important;
    filter: none;
}

.book-credits-card:hover {
    border-color: #c7d2fe;
    background: #f8faff;
}

.book-credits-card.is-selected {
    border-color: var(--fb-blue, #1c4494);
    background: #f3f6ff;
}

.book-credits-card__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff7ed;
    color: #c9891a;
    flex-shrink: 0;
}

.book-credits-card__main {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

.book-credits-card__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.book-credits-card__title {
    font-size: 0.95rem;
    font-weight: 750;
    color: #111827;
}

.book-credits-card__badge {
    display: inline-flex;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.68rem;
    font-weight: 700;
}

.book-credits-card__price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fb-blue, #1c4494);
}

.book-credits-card__hint {
    font-size: 0.78rem;
    color: #6b7280;
}

.book-credits-card__check {
    color: #9ca3af;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.book-credits-card.is-selected .book-credits-card__check {
    color: var(--fb-blue, #1c4494);
}

.book-credits-sheet__foot {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    padding: 0.75rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #eef1f6;
    background: #fff;
    box-shadow: none !important;
    filter: none;
}

.book-credits-pay {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--fb-blue, #1c4494);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: none !important;
    filter: none;
}

.book-credits-pay:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.book-credits-pay.is-loading {
    opacity: 0.8;
    cursor: wait;
}

html[dir="rtl"] .book-credits-sheet__sub,
html[dir="rtl"] .book-credits-card,
html[dir="rtl"] .book-credits-sheet__error {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

html[dir="rtl"] .flight-book__error {
    text-align: right;
}

html[dir="ltr"] .flight-book__error {
    text-align: left;
}

/* Saved travelers bottom sheet (app parity) */
.fb-sheet {
    --fb-sheet-primary: #4361ee;
    --fb-sheet-bg: #f1f4f8;
    --fb-sheet-card: #f8fafc;
    --fb-sheet-border: #e0e3e7;
    --fb-sheet-muted: #6b7280;
    position: fixed;
    inset: 0;
    /* Above mobile tab bar (10040) so CTA stays clickable */
    z-index: 100060;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.fb-sheet[hidden],
.fb-sheet__skeleton[hidden],
.fb-sheet__empty[hidden],
.fb-sheet__list[hidden],
.fb-sheet__delete-all[hidden],
.fb-sheet__search-clear[hidden],
.fb-sheet__form-error[hidden] {
    display: none !important;
}

.fb-sheet--form {
    z-index: 100070;
}

.fb-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.fb-sheet.is-open .fb-sheet__backdrop {
    opacity: 1;
}

.fb-sheet.is-closing .fb-sheet__backdrop {
    opacity: 0;
}

.fb-sheet__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    height: min(86vh, 820px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: 'GM', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 100%;
    box-sizing: border-box;
    transform: translateY(110%);
    opacity: 0.96;
    transition:
        transform 0.34s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.28s ease;
    will-change: transform;
}

.fb-sheet.is-open .fb-sheet__panel {
    transform: translateY(0);
    opacity: 1;
}

.fb-sheet.is-closing .fb-sheet__panel {
    transform: translateY(110%);
    opacity: 0.96;
}

.fb-sheet.is-open .fb-sheet__form-head,
.fb-sheet.is-open .fb-sheet__form,
.fb-sheet.is-open .fb-sheet__head {
    animation: fb-sheet-content-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.fb-sheet.is-open .fb-sheet__form-head { animation-delay: 40ms; }
.fb-sheet.is-open .fb-sheet__form { animation-delay: 70ms; }
.fb-sheet.is-open .fb-sheet__head { animation-delay: 30ms; }

@keyframes fb-sheet-content-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fb-sheet__backdrop,
    .fb-sheet__panel {
        transition: none;
    }

    .fb-sheet.is-open .fb-sheet__form-head,
    .fb-sheet.is-open .fb-sheet__form,
    .fb-sheet.is-open .fb-sheet__head {
        animation: none;
    }

    .fb-sheet__panel {
        transform: none;
        opacity: 1;
    }
}

.fb-sheet__panel--form {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: min(90vh, 820px);
    padding: 0 1.1rem 1rem;
    overflow: hidden;
}

.fb-sheet__form:has(.fb-sheet__form-scroll) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    gap: 0.75rem;
}

.fb-sheet__form-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: 0.9rem;
    align-content: start;
    padding-bottom: 0.15rem;
}

.fb-sheet__form:has(.fb-sheet__form-scroll) .fb-sheet__continue {
    flex-shrink: 0;
    margin-top: 0;
}

.fb-sheet__panel--form > .fb-sheet__handle {
    position: absolute;
    top: 0.55rem;
    left: 50%;
    z-index: 2;
    margin: 0;
    transform: translateX(-50%);
    background: #b7c3d4;
}

.fb-sheet__handle {
    display: block;
    width: 40px;
    height: 5px;
    margin: 0.65rem auto 0.35rem;
    border: none;
    border-radius: 99px;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
}

.fb-sheet__head {
    flex-shrink: 0;
    padding: 0 1rem 0.75rem;
    border-bottom: 1px solid var(--fb-sheet-border);
    background: #fff;
}

.fb-sheet__head-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.fb-sheet__head-row h2 {
    flex: 1;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    min-width: 0;
}

.fb-sheet__add {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 40px;
    padding: 0.4rem 0.75rem;
    border: none;
    border-radius: 12px;
    background: var(--fb-sheet-primary);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
}

.fb-sheet__icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fb-sheet__search {
    position: relative;
    display: block;
    margin-top: 0.75rem;
}

.fb-sheet__search i.fa-search {
    position: absolute;
    inset-inline-start: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fb-sheet-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.fb-sheet__search input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--fb-sheet-border);
    border-radius: 12px;
    background: #f8fafc;
    padding: 0.55rem 2.4rem 0.55rem 2.4rem;
    font: inherit;
    font-size: 0.92rem;
    color: #111827;
}

html[dir="rtl"] .fb-sheet__search input {
    padding-inline-start: 2.4rem;
    padding-inline-end: 2.4rem;
}

.fb-sheet__search-clear {
    position: absolute;
    inset-inline-end: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--fb-sheet-muted);
    cursor: pointer;
}

.fb-sheet__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #111827;
}

.fb-sheet__meta-count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #111827;
}

.fb-sheet__meta-count i {
    color: var(--fb-sheet-muted);
}

.fb-sheet__delete-all {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: none;
    background: transparent;
    color: #ef4444;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 650;
    cursor: pointer;
    padding: 0;
}

.fb-sheet__body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--fb-sheet-bg);
    padding: 0.85rem 1rem 1rem;
    -webkit-overflow-scrolling: touch;
}

.fb-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.fb-sheet__card {
    background: var(--fb-sheet-card);
    border: 1px solid var(--fb-sheet-border);
    border-radius: 16px;
    padding: 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.fb-sheet__card.is-selected {
    border-color: var(--fb-sheet-primary);
    border-width: 1.4px;
    background: #f2f5ff;
}

.fb-sheet__card.is-added {
    border-color: #c7d2fe;
    background: #f8fafc;
    cursor: default;
    opacity: 0.92;
}

.fb-sheet__added-badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #4338ca;
    background: #e0e7ff;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    line-height: 1.2;
}

.fb-sheet__card-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    width: 100%;
}

.fb-sheet__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #dbe4ff;
    color: var(--fb-sheet-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fb-sheet__card-name {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-sheet__card-sub {
    margin: 0.4rem 0 0;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--fb-sheet-muted);
}

.fb-sheet__passport-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.45rem;
    min-width: 0;
    width: 100%;
}

.fb-sheet__passport-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--fb-sheet-muted);
    flex-shrink: 0;
}

.fb-sheet__passport-value {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.fb-sheet__mini {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fb-sheet__mini--danger {
    color: #ef4444;
}

.fb-sheet__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--fb-sheet-muted);
}

html[dir="rtl"] .fb-sheet__empty,
html[dir="rtl"] .fb-sheet__empty p,
html[dir="rtl"] .fb-sheet__empty i {
    text-align: center;
}

.fb-sheet__empty i {
    font-size: 1.6rem;
    margin-bottom: 0.65rem;
    opacity: 0.8;
}

.fb-sheet__empty p {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.fb-sheet__empty-hint {
    margin-top: 0.35rem !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: var(--fb-sheet-muted) !important;
}

.fb-sheet__skeleton {
    display: grid;
    gap: 0.7rem;
}

.fb-sheet__skel-card {
    height: 96px;
    border-radius: 16px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: fb-skel 1.1s ease-in-out infinite;
}

@keyframes fb-skel {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.fb-sheet__cta {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    padding: 0.75rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--fb-sheet-border);
    background: #fff;
    box-shadow: none;
}

.fb-sheet__continue {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 15px;
    background: var(--fb-sheet-primary);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    padding: 0.75rem 1rem;
}

.fb-sheet__continue span,
html[dir="rtl"] .fb-sheet__continue span,
html[dir="ltr"] .fb-sheet__continue span {
    display: block;
    width: 100%;
    text-align: center !important;
}

.fb-sheet__continue:disabled {
    background: #b9c4f6;
    cursor: not-allowed;
}

.fb-sheet__form-head {
    position: relative;
    flex-shrink: 0;
    margin: 0 -1.1rem 1rem;
    padding: 1.35rem 1.1rem 0.9rem;
    background: #e6edf6;
    border-bottom: 1px solid #d3deec;
    border-radius: 28px 28px 0 0;
}

.fb-sheet__close {
    display: none;
}

.fb-sheet__form-head h2 {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
    font-weight: 750;
    color: #0f172a;
}

.fb-sheet__form-hint {
    margin: 0;
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.45;
}

.fb-sheet__form {
    display: grid;
    gap: 0.9rem;
}

.fb-sheet__form label {
    display: grid;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 650;
    color: #374151;
}

.fb-sheet__form label > span {
    padding-inline: 0.1rem;
}

.fb-sheet__form input,
.fb-sheet__form select {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.7rem 0.95rem;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 500;
    color: #111827;
    background-color: #fff;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.fb-sheet__form input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.fb-sheet__form input:hover,
.fb-sheet__form select:hover {
    border-color: #c7cdd8;
    background-color: #fafbfc;
}

.fb-sheet__form input:focus,
.fb-sheet__form select:focus {
    border-color: var(--fb-sheet-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.18);
}

.fb-sheet__form select {
    padding-inline-end: 2.5rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.9rem center;
    background-size: 1rem 1rem;
    cursor: pointer;
}

html[dir="rtl"] .fb-sheet__form select {
    background-position: left 0.9rem center;
}

html[dir="ltr"] .fb-sheet__form select {
    background-position: right 0.9rem center;
}

.fb-sheet__form select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234361ee' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
}

.fb-sheet__form .fb-field,
.fb-sheet__form .fb-field.has-value {
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: #fff;
    box-shadow: none;
    gap: 0.75rem;
    align-items: center;
}

.fb-sheet__form .fb-field:focus-within,
.fb-sheet__form .fb-field.has-value:focus-within {
    border-color: #d1d5db;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.18);
}

.fb-sheet__form .fb-field .field-icon {
    width: 28px;
    height: 28px;
    margin: 0;
    color: #9ca3af;
    font-size: 1rem;
}

.fb-sheet__form .fb-field .form-input,
.fb-sheet__form .fb-field .form-input:hover,
.fb-sheet__form .fb-field .form-input:focus {
    width: auto;
    flex: 1;
    min-width: 0;
    min-height: 0;
    border: none;
    border-radius: 0;
    padding: 0.15rem 0;
    background: transparent;
    box-shadow: none;
    font-size: 1.02rem;
    font-weight: 500;
}

.fb-sheet__form .fb-sheet__phone {
    width: 100%;
    box-sizing: border-box;
    min-height: 0;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    gap: 0.35rem;
    box-shadow: none;
}

.fb-sheet__form .fb-sheet__phone:focus-within {
    border-color: transparent;
    box-shadow: none;
}

.fb-sheet__form .fb-sheet__phone .phone-input,
.fb-sheet__form .fb-sheet__phone .phone-input:hover,
.fb-sheet__form .fb-sheet__phone .phone-input:focus {
    width: auto;
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: auto;
    border: none;
    border-radius: 0;
    padding: 0.15rem 0;
    background: transparent;
    box-shadow: none;
}

.fb-sheet__form .country-code-dropdown {
    min-width: 0;
}

.fb-sheet__form .country-code-selected {
    min-height: 0;
    height: auto;
    padding: 0.15rem 0.2rem;
    border: none;
    background: transparent;
    box-shadow: none;
    gap: 0.35rem;
}

.fb-country-modal {
    z-index: 100080;
}

button.country-code-option {
    width: 100%;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: start;
}

.fb-gender {
    display: grid;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 650;
    color: #374151;
}

.fb-gender__switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.fb-gender__opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 50px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #374151;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.fb-gender__opt i {
    font-size: 1rem;
}

.fb-gender__opt.is-active {
    border-color: #4361ee;
    background: #eef2ff;
    color: #1c4494;
}

.fb-sheet__form .fb-sheet__continue {
    margin-top: 0.35rem;
}

/* Match eVisa list / info busy buttons: spinner beside the label in LTR and RTL */
.fb-sheet__form .fb-sheet__continue.loading,
.fb-sheet__form .fb-sheet__continue.btn-loading {
    width: 100%;
    min-height: 54px;
}

html[dir="rtl"] .fb-sheet__form .fb-sheet__continue.loading .btn-text,
html[dir="ltr"] .fb-sheet__form .fb-sheet__continue.loading .btn-text,
.fb-sheet__form .fb-sheet__continue.loading .btn-text,
.fb-sheet__form .fb-sheet__continue.btn-loading .btn-text {
    width: auto !important;
    display: inline !important;
    flex: 0 1 auto;
}

.fb-sheet__form-error {
    margin: 0;
    color: #ef4444;
    font-size: 0.84rem;
    font-weight: 550;
    text-align: start;
}

/* Mobile: full-page sheet so CTA isn’t covered by the tab bar */
@media (max-width: 719px) {
    .fb-sheet {
        align-items: stretch;
    }

    .fb-sheet__panel {
        width: 100%;
        max-width: none;
        height: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
        padding-top: env(safe-area-inset-top, 0px);
    }

    /* Credits sheet: fill viewport so packages scroll above the pay CTA */
    .book-credits-sheet .book-credits-sheet__panel {
        height: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        box-shadow: none !important;
    }

    .book-credits-sheet .fb-sheet__head {
        padding-top: 0.55rem;
        padding-inline: 0.9rem;
    }

    .book-credits-sheet__body {
        padding: 0.55rem 0.9rem 0.75rem;
    }

    .book-credits-packages {
        gap: 0.55rem;
        /* Extra space so the last card isn’t tucked under the CTA */
        padding-bottom: 0.35rem;
    }

    .book-credits-card {
        padding: 0.75rem 0.8rem;
        gap: 0.6rem;
    }

    .book-credits-card__title {
        font-size: 0.9rem;
    }

    .book-credits-card__badge {
        font-size: 0.64rem;
        padding: 0.1rem 0.4rem;
    }

    .book-credits-sheet__foot {
        padding: 0.7rem 0.9rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
        box-shadow: none !important;
    }

    .fb-sheet__panel--form {
        height: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        padding: 0 1.1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
        overflow: hidden;
    }

    .fb-sheet__panel--form .fb-sheet__form-head {
        position: sticky;
        top: 0;
        z-index: 3;
        padding-top: calc(1rem + env(safe-area-inset-top, 0px));
        padding-inline-end: 3.4rem;
        border-radius: 0;
    }

    .fb-sheet__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: calc(0.85rem + env(safe-area-inset-top, 0px));
        inset-inline-end: 0.85rem;
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 50%;
        background: #fff;
        color: #374151;
        cursor: pointer;
        box-shadow: none;
    }

    .fb-sheet__handle {
        display: none;
    }

    .fb-sheet__head {
        padding-top: 0.35rem;
    }

    .fb-sheet__cta {
        padding-bottom: calc(0.95rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 720px) {
    .fb-sheet {
        align-items: center;
        padding: 1.5rem;
    }

    .fb-sheet__panel {
        border-radius: 28px;
        height: min(80vh, 760px);
    }

    .fb-sheet__panel--form {
        height: auto;
    }
}

/* Hide floating tab bar / app banner while sheets are open */
body.fb-sheet-open .mobile-tab-bar,
body.fb-sheet-open .smart-app-banner {
    display: none !important;
}

body.fb-sheet-open {
    overflow: hidden !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hotel provisional booking summary card */
.hb-summary {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    padding: 1rem 1.05rem 1.1rem;
    display: grid;
    gap: 0.9rem;
    box-shadow: none;
}

.hb-summary__top {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
}

.hb-summary__photo {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    background: #eef2ff;
}

.hb-summary__photo--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.6rem;
}

.hb-summary__head {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.hb-summary__badge {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    width: max-content;
    max-width: 100%;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: #e8eefc;
    color: var(--primary-dark, #1c4494);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.hb-summary__name {
    margin: 0;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.3;
    word-break: break-word;
}

.hb-summary__dest {
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.35;
}

.hb-summary__stay {
    background: #f8fafc;
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    display: grid;
    gap: 0.7rem;
}

.hb-summary__stay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.hb-summary__stay-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-dark, #1c4494);
    font-size: 0.9rem;
    font-weight: 700;
}

.hb-summary__stay-label i {
    font-size: 0.85rem;
}

.hb-summary__nights {
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 650;
    white-space: nowrap;
}

.hb-summary__rows {
    display: grid;
    gap: 0.45rem;
}

.hb-summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #64748b;
}

.hb-summary__row strong {
    color: #0f172a;
    font-weight: 700;
    text-align: end;
    font-variant-numeric: tabular-nums;
}

.hb-summary__row--price strong {
    color: var(--primary-dark, #1c4494);
}

@media (min-width: 720px) {
    .hb-summary__top {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 1rem;
    }

    .hb-summary__photo {
        width: 110px;
        height: 110px;
        border-radius: 16px;
    }

    .hb-summary__name {
        font-size: 1.12rem;
    }
}
