.customer-portal {
    --customer-ink: #202841;
    --customer-muted: #536079;
    --customer-primary: #5145a8;
    --customer-line: #e2e5ee;
    background: #f4f5fa;
    color: var(--customer-ink);
    padding: clamp(16px, 4vw, 40px) 14px;
}
.customer-shell { max-width: 1100px; margin-inline: auto; }
.customer-portal :is(h1,h2) { font-family: inherit; color: inherit; font-weight: 700; margin: 0 0 8px; line-height: 1.25; overflow-wrap: anywhere; }
.customer-portal h1 { font-size: clamp(1.45rem, 4vw, 2.1rem); }
.customer-portal h2 { font-size: 1.12rem; }
.customer-portal p { margin: 0 0 12px; }
.customer-muted, .customer-page-heading p, .customer-trip-date { color: var(--customer-muted); }
.customer-page-heading { margin-bottom: 16px; }
.customer-page-heading p { margin-bottom: 0; }
.customer-nav, .customer-nav-links, .customer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.customer-nav { justify-content: space-between; margin-bottom: 20px; padding: 6px; background: #fff; border: 1px solid var(--customer-line); border-radius: 14px; }
.customer-nav :is(a,button) {
    display: inline-flex; align-items: center; gap: 7px; justify-content: center; min-height: 44px;
    border: 0; border-radius: 9px; padding: 6px 12px; background: transparent;
    color: var(--customer-muted); font: inherit; font-size: .86rem; font-weight: 650; text-decoration: none; cursor: pointer;
}
.customer-nav a[aria-current] { background: #eeeafb; color: #41338e; }
.customer-nav :is(a,button):hover { background: #f1eefb; color: #41338e; }
.customer-nav form { margin: 0; }
.customer-card { background: #fff; padding: clamp(14px, 3vw, 22px); border: 1px solid var(--customer-line); border-radius: 15px; min-width: 0; box-shadow: 0 6px 18px #22204409; }
.customer-login { max-width: 460px; margin-inline: auto; }
.customer-login-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e5f6ee; color: #176351; font-size: 1.3rem; margin-bottom: 12px; }
.customer-login form, #balance-payment, .customer-stack { display: grid; gap: 8px; margin-top: 12px; }
.customer-portal :is(input, select, textarea):not([type=hidden]) { min-height: 44px; width: 100%; border: 1px solid #cdd2e2; border-radius: 9px; padding: 8px 12px; font: inherit; color: inherit; background: #fff; }
.customer-portal textarea { resize: vertical; }
.customer-portal [hidden] { display: none !important; }
.customer-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; width: fit-content;
    padding: 7px 13px; border: 1px solid var(--customer-primary); border-radius: 9px; background: var(--customer-primary);
    color: #fff; font: inherit; font-size: .86rem; font-weight: 650; text-decoration: none; cursor: pointer; touch-action: manipulation;
    transition: background-color .16s, border-color .16s, box-shadow .16s;
}
.customer-button:hover { color: #fff; background: #40358e; }
.customer-button.secondary { background: #fff; color: #4b3b99; border-color: #d8d2ef; }
.customer-button.secondary:hover { background: #f3efff; border-color: #a69bd3; }
.customer-button:disabled { opacity: .55; cursor: default; }
.customer-portal :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--customer-primary); outline-offset: 3px; }
.customer-resend { margin-top: 16px; }
.customer-resend summary { cursor: pointer; }
.customer-error, .customer-notice { border-radius: 9px; padding: 8px 12px; }
.customer-error, .customer-field-error { color: #902f29; background: #fff1ef; }
.customer-portal .customer-field-error { margin: 4px 0 0; padding: 3px 7px; font-size: .8rem; border-radius: 5px; }
.customer-notice { color: #165a44; background: #e7f6ee; }
.customer-bookings, .customer-columns, .customer-profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.customer-columns, .customer-profile-grid { align-items: start; }
.customer-profile-grid { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); }
.customer-profile-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.customer-profile-form label { display: block; margin-bottom: 4px; }
.customer-span { grid-column: 1 / -1; }
.customer-mobile-current { font-weight: 700; }
.customer-reference { color: var(--customer-muted); font-size: .81rem; font-weight: 700; letter-spacing: .02em; overflow-wrap: anywhere; }
.customer-booking-top, .customer-booking-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.customer-booking-top { justify-content: space-between; }
.customer-booking-card { display: flex; flex-direction: column; }
.customer-booking-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--customer-line); padding-top: 10px; margin-top: auto; }
.customer-booking-actions .customer-button { margin-left: auto; }
.customer-tag { display: inline-flex; align-items: center; width: fit-content; padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: .76rem; line-height: 1.45; }
.customer-tag.is-positive { background: #e1f5ea; color: #14613c; }
.customer-tag.is-negative { background: #fae8eb; color: #8c273d; }
.customer-tag.is-pending { background: #fff0d6; color: #774707; }
.customer-tag.is-neutral { background: #ecedf4; color: #474f69; }
.customer-facts { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 7px 12px; margin: 12px 0; }
.customer-facts dt { color: var(--customer-muted); }
.customer-facts dd { margin: 0; overflow-wrap: anywhere; }
.customer-due { padding-top: 8px; border-top: 1px solid var(--customer-line); }
.customer-transaction { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 6px 16px; padding-block: 10px; }
.customer-transaction + .customer-transaction { border-top: 1px solid var(--customer-line); }
.customer-transaction-details { overflow-wrap: anywhere; }
.customer-transaction p { color: var(--customer-muted); font-size: .83rem; margin: 2px 0 0; }
.customer-transaction-amount { display: grid; gap: 4px; justify-items: end; }
.customer-back { display: inline-flex; align-items: center; min-height: 38px; color: var(--customer-primary); font-size: .86rem; text-decoration: none; }
.customer-back:hover { text-decoration: underline; }
.customer-document { max-width: 720px; margin-inline: auto; }
.customer-document-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--customer-line); }
.customer-document ul { padding-left: 18px; list-style: disc; }
.customer-shell .pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media(max-width: 700px) {
    .customer-bookings, .customer-columns, .customer-profile-grid { grid-template-columns: minmax(0,1fr); }
    .customer-nav-links { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; }
    .customer-nav a { text-align: center; padding-inline: 3px; font-size: clamp(.69rem, 3.2vw, .85rem); }
    .customer-nav a i { display: none; }
    .customer-nav form { margin-left: auto; }
    .customer-transaction { grid-template-columns: minmax(0,1fr) auto; }
    .customer-transaction a { grid-column: 1 / -1; }
}
@media(max-width: 390px) {
    .customer-profile-form { grid-template-columns: minmax(0,1fr); }
    .customer-document-head .customer-button { width: 100%; }
}
@media(prefers-reduced-motion: reduce) { .customer-button { transition: none; } }
@media print {
    body > :not(.customer-portal), .customer-nav, .customer-no-print { display: none !important; }
    .customer-portal { padding: 0; background: white; }
    .customer-document { border: 0; box-shadow: none; }
}

@media (max-width: 360px) {
    body:has(.customer-portal) .top-wrapper { flex-wrap: wrap; column-gap: 8px; row-gap: 4px; }
    body:has(.customer-portal) .top-left { flex-wrap: wrap; column-gap: 8px; row-gap: 4px; }
}

.customer-signin {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    max-width: 820px;
    margin: clamp(0px, 2vw, 16px) auto;
    border: 1px solid var(--customer-line);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 40px #2b215b16;
}
.customer-signin-intro {
    display: grid;
    align-content: space-between;
    gap: 30px;
    padding: clamp(20px, 4vw, 36px);
    color: #fff;
    background: linear-gradient(150deg, #292252, #5145a8);
}
.customer-signin-intro h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
.customer-signin-intro p { margin: 0; color: #ede9ff; max-width: 26ch; }
.customer-signin-trip { font-size: 1.45rem; }
.customer-signin-panel { padding: clamp(18px, 4vw, 36px); min-width: 0; }
.customer-signin-panel > p { margin-bottom: 16px; }
.customer-signin-form { display: grid; gap: 7px; }
.customer-signin-form label { font-weight: 650; font-size: .9rem; }
.customer-signin-form small { color: var(--customer-muted); font-size: .78rem; }
.customer-signin-form .customer-button { width: 100%; justify-content: space-between; min-height: 48px; margin-top: 7px; }
.customer-signin-phone {
    display: flex; align-items: stretch; min-width: 0;
    border: 1px solid #cdd2e2; border-radius: 10px; background: #fff;
}
.customer-signin-phone:focus-within { border-color: var(--customer-primary); box-shadow: 0 0 0 3px #5145a821; }
.customer-signin-prefix {
    display: flex; align-items: center; gap: 6px; padding: 0 10px; flex: 0 0 auto;
    color: #34314c; background: #f4f2fa; border-inline-end: 1px solid #ded9ec; border-radius: 9px 0 0 9px;
    white-space: nowrap; font-size: .8rem;
}
.customer-signin .customer-signin-phone input { min-width: 0; min-height: 48px; border: 0; background: transparent; padding-inline: 10px; }
.customer-signin .customer-signin-phone input:focus-visible { outline: 0; }
.customer-signin .customer-signin-code { min-height: 48px; font-variant-numeric: tabular-nums; letter-spacing: .3em; }
.customer-signin .customer-resend summary { color: var(--customer-primary); font-size: .86rem; font-weight: 650; padding-block: 9px; }
.customer-signin .customer-resend .customer-signin-form { margin-top: 10px; }
@media (max-width: 640px) {
    .customer-signin { grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
    .customer-signin-intro { display: none; }
    .customer-signin-form input { font-size: 16px; }
}
@media (max-width: 355px) {
    .customer-signin-country-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
