/* Online check-in flow (apps/guests/templates/guests/checkin/).

   The flow renders inside the business's own website template, so it
   can't hard-code colours: every colour is a token on .checkin-wrapper,
   derived from the owner's theme (--primary, --bg). body.paper-dark (set by
   website/public/base.html from the background colour) switches the card
   to dark tokens, so every dark template — Noir, Luxe, Prestige, Savanna,
   Metallic, Studio… and any owner who picks a dark background — gets a dark
   card without a per-template list. Rules are scoped under .checkin-wrapper
   so a template's own input / button / heading styles don't leak in. */

.checkin-wrapper {
    --ci-surface: #ffffff;
    --ci-ink: #0f172a;
    --ci-muted: #475569;
    --ci-faint: #64748b;
    --ci-line: #dfe3e9;
    --ci-soft: #f5f7fa;
    --ci-field: #ffffff;
    --ci-field-line: #8a94a6;
    --ci-accent: var(--primary, #2563eb);
    --ci-accent-ink: color-mix(in srgb, var(--primary, #2563eb) 82%, #000);
    --ci-on-accent: #ffffff;
    --ci-done: #15803d;
    --ci-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);

    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    padding-top: 16px;
    color: var(--ci-ink);
}

/* Readable text on the button whatever colour the owner chose. */
@supports (color: oklch(from red l c h)) {
    .checkin-wrapper {
        --ci-accent: oklch(from var(--primary, #2563eb) min(l, 0.62) c h);
        --ci-accent-ink: oklch(from var(--primary, #2563eb) min(l, 0.5) c h);
        --ci-on-accent: oklch(from var(--ci-accent) clamp(0, (0.66 - l) * 999, 1) 0 0);
    }
}

body.paper-dark .checkin-wrapper {
    --ci-surface: color-mix(in srgb, var(--bg, #111) 86%, #fff);
    --ci-ink: #f4f4f5;
    --ci-muted: #cfd2d8;
    --ci-faint: #b3b8c2;
    --ci-line: rgba(255, 255, 255, 0.16);
    --ci-soft: rgba(255, 255, 255, 0.06);
    --ci-field: color-mix(in srgb, var(--bg, #111) 70%, #000);
    --ci-field-line: rgba(255, 255, 255, 0.4);
    --ci-accent: color-mix(in srgb, var(--primary, #60a5fa) 60%, #fff);
    --ci-accent-ink: color-mix(in srgb, var(--primary, #60a5fa) 45%, #fff);
    --ci-on-accent: #111111;
    --ci-done: #4ade80;
    --ci-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
@supports (color: oklch(from red l c h)) {
    body.paper-dark .checkin-wrapper {
        --ci-accent: oklch(from var(--primary, #60a5fa) max(l, 0.74) c h);
        --ci-accent-ink: oklch(from var(--primary, #60a5fa) max(l, 0.8) c h);
        --ci-on-accent: oklch(from var(--ci-accent) clamp(0, (0.66 - l) * 999, 1) 0 0);
    }
}

/* Glass layouts: frosted card over the site's backdrop. */
body.skel-glass .checkin-wrapper .checkin-card {
    background: color-mix(in srgb, var(--ci-surface) 84%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
}

.checkin-wrapper .checkin-card {
    background: var(--ci-surface);
    color: var(--ci-ink);
    border-radius: 16px;
    border: 1px solid var(--ci-line);
    box-shadow: var(--ci-shadow);
    padding: 32px;
    text-align: left;
}

/* Template skins style a, p, li, h3, label… — hold our own look inside the card. */
.checkin-wrapper .checkin-card p,
.checkin-wrapper .checkin-card li,
.checkin-wrapper .checkin-card summary,
.checkin-wrapper .checkin-card legend {
    color: inherit;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
}
.checkin-wrapper .checkin-card a:not(.btn) {
    color: var(--ci-accent-ink);
}
.checkin-wrapper .checkin-card h3,
.checkin-wrapper .checkin-card h4 {
    color: var(--ci-ink);
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
}

/* Header icon (booking-reference page) */
.checkin-wrapper .checkin-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--ci-accent);
    color: var(--ci-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* Step-scale heading / lede classes.

   Why divs, not h2/p: templates like Editorial, Luxe, Prestige style
   h2/p aggressively (huge serif all-caps for h2). A scoped class keeps our
   size whatever the template. Every step_*.html uses .checkin-step__title
   for its heading and .checkin-step__lede for the line under it. The page
   has a visually hidden <h1> (base_checkin.html) for screen readers. */
.checkin-wrapper .checkin-step__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ci-ink);
    margin: 0 0 8px;
    font-family: inherit;
    text-transform: none;
    letter-spacing: -0.01em;
}
.checkin-wrapper .checkin-step__lede {
    color: var(--ci-muted);
    font-size: 15.5px;
    line-height: 1.55;
    margin: 0 0 20px;
    font-family: inherit;
}

.checkin-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Field-level error */
.checkin-wrapper .field-error {
    color: #b91c1c;
    font-size: 13.5px;
    margin-top: 6px;
}
body.paper-dark .checkin-wrapper .field-error {
    color: #fca5a5;
}

/* ── Form groups & inputs ── */
.checkin-wrapper .form-group {
    margin-bottom: 20px;
}

.checkin-wrapper .form-group > label,
.checkin-wrapper .checkin-id-slot__label,
.checkin-wrapper .checkin-id-person > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ci-ink);
    text-transform: none;
    letter-spacing: normal;
    font-family: inherit;
}
.checkin-wrapper .checkin-optional {
    font-weight: 400;
    color: var(--ci-faint);
}
.checkin-wrapper .checkin-required {
    color: #dc2626;
}
body.paper-dark .checkin-wrapper .checkin-required {
    color: #fca5a5;
}

.checkin-wrapper .form-control,
.checkin-wrapper .form-group input[type="text"],
.checkin-wrapper .form-group input[type="email"],
.checkin-wrapper .form-group input[type="tel"],
.checkin-wrapper .form-group input[type="time"],
.checkin-wrapper .form-group textarea,
.checkin-wrapper .form-group select {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--ci-field-line);
    border-radius: 10px;
    font-size: 16px; /* 16px stops iPhones zooming in on focus */
    font-family: inherit;
    line-height: 1.4;
    background: var(--ci-field);
    color: var(--ci-ink);
    box-shadow: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
    margin: 0;
}
.checkin-wrapper .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
body.paper-dark .checkin-wrapper .form-group input[type="time"] {
    color-scheme: dark;
}

.checkin-wrapper .form-control:focus,
.checkin-wrapper .form-group input:focus,
.checkin-wrapper .form-group textarea:focus,
.checkin-wrapper .form-group select:focus {
    outline: none;
    border-color: var(--ci-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ci-accent) 30%, transparent);
}

.checkin-wrapper .form-group input::placeholder,
.checkin-wrapper .form-control::placeholder {
    color: var(--ci-faint);
    opacity: 0.8;
}

.checkin-wrapper .form-group small,
.checkin-wrapper .form-hint {
    display: block;
    font-size: 13px;
    color: var(--ci-faint);
    margin-top: 6px;
    line-height: 1.45;
}
.checkin-wrapper .form-hint--warn {
    color: #b45309;
    font-weight: 600;
}
body.paper-dark .checkin-wrapper .form-hint--warn {
    color: #fcd34d;
}

/* ── Buttons ── */
.checkin-wrapper .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, opacity 0.15s;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.3;
    text-align: center;
    box-sizing: border-box;
}
.checkin-wrapper .btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ci-accent) 55%, transparent);
    outline-offset: 2px;
}

.checkin-wrapper .btn-primary,
.checkin-wrapper a.btn-primary {
    background: var(--ci-accent);
    color: var(--ci-on-accent) !important;
    border-color: var(--ci-accent);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--ci-accent) 30%, transparent);
}
.checkin-wrapper .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--ci-accent) 35%, transparent);
}

.checkin-wrapper .btn-secondary,
.checkin-wrapper a.btn-secondary {
    background: transparent;
    color: var(--ci-ink) !important;
    border-color: var(--ci-line);
    box-shadow: none;
}
.checkin-wrapper .btn-secondary:hover {
    background: var(--ci-soft);
    border-color: var(--ci-field-line);
}

.checkin-wrapper .btn:disabled,
.checkin-wrapper .btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.checkin-wrapper .btn-block {
    width: 100%;
}
.checkin-wrapper .btn-lg {
    min-height: 56px;
    font-size: 17px;
}

/* ── Alerts ── */
.checkin-wrapper .alert-error,
.checkin-wrapper .checkin-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 14.5px;
    line-height: 1.45;
}
.checkin-wrapper .checkin-error[hidden] {
    display: none;
}
.checkin-wrapper .alert-info {
    background: color-mix(in srgb, var(--ci-accent) 10%, var(--ci-surface));
    color: var(--ci-ink);
    border: 1px solid color-mix(in srgb, var(--ci-accent) 35%, transparent);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 14.5px;
    line-height: 1.45;
}

/* ── Progress: "Step 2 of 5 · Arrival time" + a bar, readable on phones ── */
.checkin-progress {
    margin: 0 0 14px;
}
.checkin-progress__text {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13.5px;
    color: var(--ci-muted);
    margin-bottom: 8px;
}
.checkin-progress__count {
    font-weight: 600;
    color: var(--ci-ink);
    white-space: nowrap;
}
.checkin-progress__next {
    text-align: right;
    min-width: 0;
}
.checkin-progress__bar {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.checkin-progress__bar li {
    height: 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ci-ink) 14%, transparent);
    margin: 0;
}
.checkin-progress__bar li.done {
    background: var(--ci-done);
}
.checkin-progress__bar li.active {
    background: var(--ci-accent);
}

/* Divider text (e.g. "Already checked in?") */
.checkin-wrapper .checkin-divider-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--ci-muted);
    font-weight: 500;
    margin: 22px 0 10px;
}
.checkin-wrapper .checkin-divider-text::before,
.checkin-wrapper .checkin-divider-text::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--ci-line);
}

/* Navigation */
.checkin-wrapper .checkin-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}
.checkin-wrapper .checkin-nav .btn-primary {
    flex: 1 1 auto;
    max-width: 320px;
    margin-left: auto;
}
.checkin-wrapper .checkin-nav.center {
    justify-content: center;
}
.checkin-wrapper .checkin-nav.center .btn-primary {
    max-width: none;
    margin: 0;
}

/* Info boxes */
.checkin-wrapper .checkin-info,
.checkin-wrapper .checkin-info-box {
    background: var(--ci-soft);
    border: 1px solid var(--ci-line);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ci-muted);
}
.checkin-wrapper .checkin-info strong,
.checkin-wrapper .checkin-info-box strong {
    color: var(--ci-ink);
}
.checkin-wrapper .checkin-info-box h3,
.checkin-wrapper .checkin-info-box h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

/* ID notice: short summary, full text behind "About your ID document". */
/* Live demo only: the "we don't keep your photo" note + "Use a sample ID". */
.checkin-wrapper .checkin-id-demo {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed var(--ci-field-line);
    background: var(--ci-soft);
    color: var(--ci-ink);
    font-size: 14px;
    line-height: 1.5;
}
.checkin-wrapper .checkin-id-demo__line { margin: 0; }
.checkin-wrapper .checkin-id-demo__btn {
    margin-top: 10px;
    border: 1px solid var(--ci-field-line);
    border-radius: 10px;
    background: var(--ci-field);
    color: var(--ci-ink);
}
.checkin-wrapper .checkin-id-demo__btn:hover { border-color: var(--ci-accent); }
.checkin-wrapper .checkin-id-notice p {
    margin: 0 0 0.6em;
}
.checkin-wrapper .checkin-id-notice__more summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ci-ink);
    padding: 8px 0;
    min-height: 32px;
}
.checkin-wrapper .checkin-id-notice__more[open] summary {
    margin-bottom: 6px;
}
.checkin-wrapper .checkin-id-notice__confirm {
    font-size: 13.5px;
    font-style: italic;
    margin: 6px 0 0 !important;
}

/* Summary list (confirm + complete pages) */
.checkin-room-image {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}
.checkin-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.checkin-wrapper .checkin-location-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ci-muted);
    background: var(--ci-soft);
    border: 1px solid var(--ci-line);
    border-radius: 6px;
    margin-left: 4px;
}

.checkin-wrapper .checkin-summary {
    margin: 16px 0;
    padding: 4px 16px;
    border: 1px solid var(--ci-line);
    border-radius: 12px;
}
.checkin-wrapper .summary-row {
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--ci-line);
}
.checkin-wrapper .summary-row:last-child {
    border-bottom: none;
}
.checkin-wrapper .summary-label {
    color: var(--ci-muted);
    font-size: 14px;
    flex: 0 0 auto;
}
.checkin-wrapper .summary-value {
    font-weight: 600;
    text-align: right;
    min-width: 0;
    overflow-wrap: anywhere;
}
.checkin-wrapper .summary-rooms {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
}

/* Success state (complete page) */
.checkin-wrapper .checkin-success {
    text-align: center;
    padding: 4px 0 8px;
}
.checkin-wrapper .checkin-done-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ci-done) 14%, transparent);
    color: var(--ci-done);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}
.checkin-wrapper .checkin-done-badge .success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ci-done);
    color: var(--ci-surface);
    font-size: 13px;
}
.checkin-wrapper .checkin-next-steps {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
.checkin-wrapper .checkin-next-steps li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--ci-muted);
    margin: 0;
}
.checkin-wrapper .checkin-next-steps svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--ci-accent-ink);
}

/* One-time pulse to guide the eye to the portal button (owner's request:
   guests at the end didn't know to open the portal). Respects reduced motion. */
.checkin-wrapper .checkin-portal-cta {
    animation: checkin-cta-pulse 1.6s ease-in-out 0.6s 2;
}
@keyframes checkin-cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ci-accent) 0%, transparent); }
    50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--ci-accent) 25%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
    .checkin-wrapper .checkin-portal-cta { animation: none; }
}

.checkin-wrapper .checkin-tip {
    text-align: center;
    color: var(--ci-faint);
    font-size: 14px;
    margin-top: 16px;
}
.checkin-wrapper .checkin-tip--block {
    display: block;
    margin-top: 8px;
}

/* Rules list */
.checkin-wrapper .rules-list {
    padding-left: 20px;
    margin: 8px 0;
}
.checkin-wrapper .rules-list li {
    margin-bottom: 4px;
    font-size: 14px;
}

/* Checkbox */
.checkin-wrapper .checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    color: var(--ci-ink);
}
.checkin-wrapper .checkbox-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--ci-field-line);
    border-radius: 6px;
    background: var(--ci-field);
    cursor: pointer;
    margin: 0;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
}
.checkin-wrapper .checkbox-label input[type="checkbox"]:checked {
    background: var(--ci-accent);
    border-color: var(--ci-accent);
}
.checkin-wrapper .checkbox-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid var(--ci-on-accent);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.checkin-wrapper .checkbox-label input[type="checkbox"]:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ci-accent) 55%, transparent);
    outline-offset: 2px;
}
.checkin-wrapper .checkbox-label span {
    line-height: 1.5;
}

/* House rules on the confirm step (native details/summary) */
.checkin-wrapper .checkin-rules {
    border: 1px solid var(--ci-line);
    border-radius: 12px;
    margin: 16px 0;
    background: var(--ci-soft);
}
.checkin-wrapper .checkin-rules summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    min-height: 48px;
    box-sizing: border-box;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--ci-ink);
    list-style: none;
}
.checkin-wrapper .checkin-rules summary::-webkit-details-marker {
    display: none;
}
.checkin-wrapper .checkin-rules summary svg {
    transition: transform 0.2s;
    flex-shrink: 0;
}
.checkin-wrapper .checkin-rules[open] summary svg {
    transform: rotate(180deg);
}
.checkin-wrapper .checkin-rules__body {
    padding: 0 16px 12px;
    color: var(--ci-muted);
    overflow-wrap: break-word;
}
.checkin-wrapper .checkin-rules__body ul,
.checkin-wrapper .checkin-rules__body ol {
    padding-left: 20px;
}
.checkin-wrapper .rules-extra-item {
    font-size: 14px;
    margin: 4px 0 0;
    padding-left: 20px;
}

/* Consent area */
.checkin-wrapper .checkin-consent {
    margin-top: 20px;
    background: var(--ci-soft);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--ci-line);
}
.checkin-wrapper .checkin-consent-sub {
    font-size: 13px;
    color: var(--ci-faint);
    margin: 8px 0 0 36px;
    line-height: 1.5;
}

/* Vehicle step: yes/no choice (real radio buttons) */
.checkin-wrapper .car-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 20px;
    border: 0;
    padding: 0;
    min-width: 0;
}
.checkin-wrapper .car-toggle legend {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    padding: 0;
}
.checkin-wrapper .car-toggle-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 16px;
    border: 2px solid var(--ci-line);
    border-radius: 12px;
    background: var(--ci-field);
    font-size: 16px;
    font-weight: 600;
    color: var(--ci-muted);
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    margin: 0;
}
.checkin-wrapper .car-toggle-btn input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.checkin-wrapper .car-toggle-btn:has(input:checked),
.checkin-wrapper .car-toggle-btn.active {
    border-color: var(--ci-accent);
    background: color-mix(in srgb, var(--ci-accent) 10%, var(--ci-field));
    color: var(--ci-accent-ink);
}
.checkin-wrapper .car-toggle-btn:has(input:focus-visible) {
    outline: 3px solid color-mix(in srgb, var(--ci-accent) 55%, transparent);
    outline-offset: 2px;
}

/* Vehicle step: parking instructions (native details/summary) */
.checkin-wrapper .checkin-parking-reveal {
    margin-top: 16px;
    border: 1px solid var(--ci-line);
    border-radius: 12px;
    overflow: hidden;
}
.checkin-wrapper .checkin-parking-reveal summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 14px;
    min-height: 48px;
    box-sizing: border-box;
    background: var(--ci-soft);
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ci-ink);
    list-style: none;
}
.checkin-wrapper .checkin-parking-reveal summary::-webkit-details-marker {
    display: none;
}
.checkin-wrapper .checkin-parking-reveal summary span {
    flex: 1;
}
.checkin-wrapper .parking-reveal-chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}
.checkin-wrapper .checkin-parking-reveal[open] .parking-reveal-chevron {
    transform: rotate(180deg);
}
.checkin-wrapper .parking-reveal-content {
    max-height: 320px;
    overflow-y: auto;
    padding: 14px;
    font-size: 14px;
    line-height: 1.6;
    border-top: 1px solid var(--ci-line);
    color: var(--ci-muted);
}
.checkin-wrapper .parking-reveal-content h4 {
    margin: 0 0 8px;
    font-size: 15px;
}
.checkin-wrapper .parking-reveal-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Multi-person ID: one box per extra person. */
.checkin-wrapper .checkin-id-person {
    border: 1px solid var(--ci-line);
    border-radius: 12px;
    padding: 12px 16px 16px;
    margin: 0 0 18px;
    min-width: 0;
}
.checkin-wrapper .checkin-id-person legend {
    font-weight: 700;
    padding: 0 6px;
    color: var(--ci-ink);
}
.checkin-wrapper .checkin-id-person .form-control {
    margin-bottom: 14px;
}
.checkin-wrapper .checkin-id-person__optional {
    font-weight: 400;
    color: var(--ci-faint);
    font-size: 0.9em;
}
.checkin-wrapper .idu {
    color: var(--ci-ink);
}

/* Language links under the card */
.checkin-wrapper .guest-lang-switch {
    color: var(--ci-muted) !important;
}
.checkin-wrapper .guest-lang-switch strong {
    color: var(--ci-ink) !important;
}
.checkin-wrapper .guest-lang-switch {
    align-items: center;
}
.checkin-wrapper .guest-lang-switch a,
.checkin-wrapper .guest-lang-switch strong {
    display: inline-block;
    padding: 6px 2px;
    line-height: 1.3;
}

/* "Welcome back" banner (returning guest with an ID on file). */
.checkin-wrapper .checkin-recognized-banner {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.checkin-wrapper .checkin-recognized-banner__tick {
    font-size: 16px;
    line-height: 1.3;
}

/* ── Phones ── */
@media (max-width: 600px) {
    .checkin-wrapper {
        padding-top: 4px;
    }
    .checkin-wrapper .checkin-card {
        padding: 22px 18px;
        border-radius: 14px;
    }
    .checkin-wrapper .checkin-step__title {
        font-size: 21px;
    }
    .checkin-wrapper .checkin-step__lede {
        font-size: 15px;
    }
    .checkin-wrapper .checkin-nav {
        flex-direction: column-reverse;
    }
    .checkin-wrapper .checkin-nav .btn {
        width: 100%;
        max-width: none;
    }
    .checkin-wrapper .checkin-nav .btn-secondary {
        border-color: transparent;
        min-height: 44px;
    }
    .checkin-wrapper .summary-row {
        flex-wrap: wrap;
        gap: 2px 12px;
    }
    .checkin-wrapper .checkin-consent-sub {
        margin-left: 0;
    }
}

/* One line under the portal button when the doors open from the phone. */
.checkin-wrapper .checkin-phone-key {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    opacity: 0.85;
}
