/* Customer features integrated into the Skywave website.
 *
 * Visual goal: the bookings/profile sections should look like part of the
 * airline website, not a console. We reuse the existing `.main` light
 * background (#F2F5F9), the same teal accent (#14b8a6), the same card
 * styling (white, rounded, soft shadow) used by `.deal-card`.
 *
 * Hero stays visible above; the deals/points-banner content (`.main`)
 * hides while a customer route is active so the page reads as "you're
 * in your account" without losing the website chrome.
 */

/* ---- nav greeting (replaces "Sign in") ---- */

.skywave-site .nav-greeting {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.12);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 120ms;
}
.skywave-site .nav-greeting:hover { background: rgba(20, 184, 166, 0.22); }
.skywave-site .nav-greeting-avatar {
    width: 32px; height: 32px;
    border-radius: 999px;
    background: #14b8a6;
    color: #0D1B2A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    overflow: hidden;
}
.skywave-site .nav-greeting-avatar img { width: 100%; height: 100%; object-fit: cover; }
.skywave-site .nav-greeting-text { white-space: nowrap; }

/* ---- customer area shell ---- */

.skywave-site .customer-area[data-state="hidden"] { display: none; }

.skywave-site .customer-area {
    background: #F2F5F9;
    color: #1a1a2e;
    padding: 48px 48px 80px;
}
.skywave-site .customer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.skywave-site .cust-section-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}
.skywave-site .cust-back {
    color: #0d9488;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 4px;
    cursor: pointer;
}
.skywave-site .cust-back:hover { text-decoration: underline; }
.skywave-site .cust-title {
    font-size: 28px;
    font-weight: 800;
    color: #0D1B2A;
    margin: 0;
    letter-spacing: -0.01em;
}
.skywave-site .cust-sub {
    color: #4b5563;
    font-size: 15px;
    margin: 0;
}

/* ---- empty / loading / error ---- */

.skywave-site .cust-empty {
    background: #fff;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(13, 27, 42, 0.06);
}
.skywave-site .cust-empty h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: #0D1B2A;
}
.skywave-site .cust-empty p {
    color: #4b5563;
    margin: 0 0 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.skywave-site .cust-empty.error h3 { color: #ea580c; }

.skywave-site .cust-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #14b8a6;
    border-radius: 999px;
    animation: cust-spin 0.7s linear infinite;
    margin: 0 auto 12px;
}
@keyframes cust-spin { to { transform: rotate(360deg); } }

.skywave-site .cust-btn {
    display: inline-block;
    margin-top: 4px;
    text-decoration: none;
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

/* ---- bookings list ---- */

.skywave-site .cust-bookings {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.skywave-site .cust-booking {
    display: block;
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    text-decoration: none;
    color: #0D1B2A;
    box-shadow: 0 4px 18px rgba(13, 27, 42, 0.06);
    transition: transform 120ms, box-shadow 120ms;
}
.skywave-site .cust-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(13, 27, 42, 0.10);
}
.skywave-site .cust-booking-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.skywave-site .cust-booking-route {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0D1B2A;
}
.skywave-site .cust-arrow { color: #14b8a6; margin: 0 4px; }
.skywave-site .cust-booking-cities {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}
.skywave-site .cust-booking-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: #4b5563;
}
.skywave-site .cust-booking-total {
    font-weight: 700;
    color: #0D1B2A;
}

.skywave-site .cust-pill {
    background: rgba(20, 184, 166, 0.15);
    color: #0d9488;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.skywave-site .cust-pill.light {
    background: #eef2f6;
    color: #4b5563;
}
.skywave-site .cust-pill[data-status="Pending Confirmation"] {
    background: rgba(251, 191, 36, 0.18);
    color: #b45309;
}

/* ---- booking detail ---- */

.skywave-site .cust-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.skywave-site .cust-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}
.skywave-site .cust-kv {
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 4px 18px rgba(13, 27, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.skywave-site .cust-kv-k {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}
.skywave-site .cust-kv-v {
    font-size: 14px;
    font-weight: 700;
    color: #0D1B2A;
}

.skywave-site .cust-h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin: 8px 0 0;
    font-weight: 700;
}

.skywave-site .cust-segments {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.skywave-site .cust-segment {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 16px;
    align-items: center;
    box-shadow: 0 4px 18px rgba(13, 27, 42, 0.05);
}
.skywave-site .cust-segment-side.right { text-align: right; }
.skywave-site .cust-iata {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0D1B2A;
}
.skywave-site .cust-segment-city {
    font-size: 13px;
    color: #4b5563;
    margin-top: 2px;
}
.skywave-site .cust-segment-time {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}
.skywave-site .cust-segment-mid { text-align: center; }
.skywave-site .cust-segment-line {
    height: 2px;
    background: linear-gradient(90deg,
        rgba(20, 184, 166, 0) 0%,
        #14b8a6 25%, #14b8a6 75%,
        rgba(20, 184, 166, 0) 100%);
    margin: 0 8px 8px;
}
.skywave-site .cust-segment-duration {
    font-size: 12px;
    font-weight: 700;
    color: #0d9488;
}
.skywave-site .cust-segment-meta {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.skywave-site .cust-foot {
    color: #6b7280;
    font-size: 13px;
    text-align: center;
    margin: 8px 0 0;
}

/* ---- booking detail actions ---- */

.skywave-site .cust-detail-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 0 0;
    border-top: 1px solid #eef2f6;
    margin-top: 8px;
}
.skywave-site .cust-action-link {
    background: none;
    border: none;
    color: #0d9488;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    padding: 6px 0;
}
.skywave-site .cust-action-link:hover { text-decoration: underline; }
.skywave-site .cust-action-link.danger { color: #dc2626; }
.skywave-site .cust-action-link.small { font-size: 13px; }

.skywave-site .cust-segment-foot {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.skywave-site .cust-seat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F2F5F9;
    border-radius: 999px;
    padding: 4px 12px 4px 6px;
    font-size: 13px;
}
.skywave-site .cust-seat-pill-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #fff;
    background: #14b8a6;
    border-radius: 999px;
    padding: 3px 8px;
}
.skywave-site .cust-seat-pill-value {
    font-weight: 700;
    color: #0D1B2A;
    letter-spacing: 0.04em;
}
.skywave-site .cust-segment-toast {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 8px;
    color: #0d9488;
    font-size: 13px;
    font-weight: 600;
}

.skywave-site .cust-booked-icon.cancelled {
    background: #dc2626;
}

/* ---- airport autocomplete ---- */

.skywave-site .cust-ac-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(13, 27, 42, 0.18);
    z-index: 50;
    overflow: hidden;
    max-height: 280px;
    overflow-y: auto;
}
.skywave-site .cust-ac-opt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    color: #0D1B2A;
    font-size: 14px;
    transition: background 100ms;
}
.skywave-site .cust-ac-opt:hover,
.skywave-site .cust-ac-opt.active {
    background: rgba(20, 184, 166, 0.1);
}
.skywave-site .cust-ac-city {
    font-weight: 500;
}
.skywave-site .cust-ac-code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #0d9488;
    background: rgba(20, 184, 166, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
}

/* ---- search results (book page) ---- */

.skywave-site .cust-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.skywave-site .cust-flight {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 4px 18px rgba(13, 27, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.skywave-site .cust-flight-top {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 16px;
    align-items: center;
}
.skywave-site .cust-flight-mid {
    text-align: center;
}
.skywave-site .cust-flight-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #eef2f6;
    padding-top: 16px;
    flex-wrap: wrap;
}
.skywave-site .cust-fares {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.skywave-site .cust-fare-chip {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 12px;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 110px;
    font: inherit;
    transition: border-color 120ms;
}
.skywave-site .cust-fare-chip:hover { border-color: #14b8a6; }
.skywave-site .cust-fare-chip.active {
    border-color: #14b8a6;
    background: rgba(20, 184, 166, 0.08);
}
.skywave-site .cust-fare-chip.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.skywave-site .cust-fare-chip-name {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #6b7280;
}
.skywave-site .cust-fare-chip-price {
    font-size: 15px;
    font-weight: 800;
    color: #0D1B2A;
}
.skywave-site .cust-fare-chip.active .cust-fare-chip-price { color: #0d9488; }
.skywave-site .cust-flight-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}
.skywave-site .cust-flight-price {
    font-size: 22px;
    font-weight: 800;
    color: #0D1B2A;
}

/* ---- booking confirmation card ---- */

.skywave-site .cust-booked {
    background: #fff;
    border-radius: 14px;
    padding: 32px 22px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(13, 27, 42, 0.08);
}
.skywave-site .cust-booked-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #14b8a6;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.skywave-site .cust-booked h3 {
    font-size: 20px;
    margin: 0 0 8px;
    color: #0D1B2A;
}
.skywave-site .cust-booked p {
    color: #4b5563;
    margin: 0 0 18px;
}

/* ---- profile form ---- */

.skywave-site .cust-form {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(13, 27, 42, 0.06);
}
.skywave-site .cust-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 600px) {
    .skywave-site .cust-form-grid { grid-template-columns: 1fr; }
}
.skywave-site .cust-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.skywave-site .cust-field.readonly {
    background: #F2F5F9;
    border-radius: 10px;
    padding: 10px 14px;
}
.skywave-site .cust-readonly-val {
    font-weight: 600;
    color: #0D1B2A;
    font-size: 14px;
}
.skywave-site .cust-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    font-weight: 700;
}
.skywave-site .cust-form input {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font: inherit;
    color: #0D1B2A;
}
.skywave-site .cust-form input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.skywave-site .cust-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
}
.skywave-site .cust-status { font-size: 13px; color: #6b7280; }
.skywave-site .cust-status.ok  { color: #0d9488; }
.skywave-site .cust-status.err { color: #ea580c; }

/* Past-bookings section: muted card + clear separation. */
.skywave-site .cust-bookings-past {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cust-border, #e5e7eb);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.skywave-site .cust-bookings-past-title {
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--cust-mute, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.skywave-site .cust-booking_past {
    opacity: 0.7;
}
.skywave-site .cust-booking_past:hover {
    opacity: 0.95;
}

/* Avatar tile on the #profile form. Square photo with a hint label,
   reuses native file picker so mobile gets the camera/gallery sheet. */
.skywave-site .cust-avatar-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
}
.skywave-site .cust-avatar-preview {
    width: 7rem;
    height: 7rem;
    border-radius: 999px;
    background-color: var(--cust-bg-alt, #f5f7fb);
    border: 2px dashed var(--cust-border, #d8dee8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.skywave-site .cust-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.skywave-site .cust-avatar-icon {
    font-size: 1.8rem;
    color: var(--cust-mute, #6b7280);
}
.skywave-site .cust-avatar-hint {
    font-size: 0.78rem;
    color: var(--cust-mute, #6b7280);
}
.skywave-site .cust-avatar-file {
    display: none;
}

