/* 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;
}

.flight-book__hero-inner {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.flight-book__hero h1 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.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);
}

.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;
}

#flightBookMain {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}

.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__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 {
    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;
}

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

.flight-book__state .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    text-align: 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;
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

/* 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.45rem;
    padding: 0.6rem 0.7rem;
    height: fit-content;
}

/* 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.35rem;
    padding: 0.5rem 0.55rem;
    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__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.75rem 0.9rem 0.85rem;
    color: var(--fb-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-top: -0.15rem;
    border: 1px solid #e8eaef;
}

.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;
}

/* Match site .sort-select / form dropdowns */
.flight-book__select.sort-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;
}

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

.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"] .flight-book__select.sort-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;
}

.flight-book__select option {
    font-weight: 500;
    color: var(--fb-text, #1a1a2e);
}

.flight-book__checkout {
    padding: 0.8rem 0.9rem 0.9rem;
}

.flight-book__checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    font-size: 0.92rem;
    color: var(--fb-text);
}

.flight-book__checkout-row:not(.flight-book__checkout-row--muted) {
    padding-bottom: 0.7rem;
    margin-bottom: 0.7rem;
    border-bottom: 1px solid #e8eaef;
}

.flight-book__checkout-row strong,
.flight-book__checkout-row > span:last-child {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fb-text);
    white-space: nowrap;
}

.flight-book__checkout-row--muted {
    color: var(--fb-muted);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e8eaef;
}

.flight-book__checkout-row--muted > span:last-child {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fb-text);
}

.flight-book__create {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 10px;
    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: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center !important;
}

.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 0 0.65rem;
    text-align: start;
}

.flight-book__error--credits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
}

.flight-book__topup-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--fb-blue, #1c4494);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.flight-book__topup-link:hover {
    color: #153572;
}

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;
    z-index: 1200;
    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: 1210;
}

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

.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;
}

.fb-sheet__panel--form {
    height: auto;
    max-height: 90vh;
    padding: 0.75rem 1.1rem 1.15rem;
    overflow: auto;
}

.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: auto;
    background: var(--fb-sheet-bg);
    padding: 0.85rem 1rem 1rem;
}

.fb-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.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: 0 3px 10px rgba(0, 0, 0, 0.04);
}

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

.fb-sheet__card-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.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;
}

.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 {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--fb-sheet-muted);
}

.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;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--fb-sheet-border);
    background: #fff;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.05);
}

.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 h2 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.2rem;
    font-weight: 750;
    color: #111827;
}

.fb-sheet__form-hint {
    margin: 0 0 1.1rem;
    font-size: 0.84rem;
    color: var(--fb-sheet-muted);
    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: #fff;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 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: #fafbfc;
}

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

.fb-sheet__form select {
    padding-inline-end: 2.5rem;
    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-color: #fff;
    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");
}

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

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

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

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

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

.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;
}
