/* Whitelabel reservation page — compact single-screen booking flow.
   OpenTable / Rezerve.net inspired: tight pills, minimal chrome, no long scroll.
   Two pages share this stylesheet: /r/{StoreId} and /r/view/{ReadableId}. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Damion&display=swap');

:root {
    --rsv-bg: #f7f5f1;
    --rsv-surface: #ffffff;
    --rsv-surface-2: #faf8f4;
    --rsv-text: #1a1814;
    --rsv-text-muted: #6b6358;
    --rsv-text-dim: #9a9285;
    --rsv-accent: #1a1814;
    --rsv-accent-hover: #2d2922;
    --rsv-accent-soft: #f0ebe1;
    --rsv-border: #e7e2d8;
    --rsv-border-strong: #d4cdbf;
    --rsv-danger: #c4453a;
    --rsv-success: #2d7a44;
    --rsv-radius: 6px;
    --rsv-radius-sm: 4px;
    --rsv-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.rsv-shell, .rsv-shell * { box-sizing: border-box; }

.rsv-shell {
    min-height: 100vh;
    background: var(--rsv-bg);
    color: var(--rsv-text);
    font-family: var(--rsv-font);
    font-size: 14px;
    line-height: 1.45;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* -------- Rotating blurred background -------- */
.rsv-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #0f0c08;
}
.rsv-bg-slide {
    position: absolute;
    inset: -20px; /* extend past blur edge so the soft halo never reveals page color */
    background-size: cover;
    background-position: center;
    /* Lighter blur + only a touch of darkening — the photo should still be recognizable behind
       the card. The dimming is mostly carried by the tint overlay below, so we can keep this
       slide closer to the original image. */
    filter: blur(6px) brightness(1);
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    transform: scale(1.03);
}
.rsv-bg-slide.rsv-bg-on { opacity: 1; }
.rsv-bg-tint {
    position: absolute;
    inset: 0;
    /* Light wash so the card edges stay visible without hiding the photo. */
    background: linear-gradient(180deg, rgba(15, 12, 8, 0.15) 0%, rgba(15, 12, 8, 0.25) 100%);
}
.rsv-shell > *:not(.rsv-bg) { position: relative; z-index: 1; }

/* -------- Brand wordmark -------- */
/* Sits in the gap between the top of the screen and the card. Uses the same Damion script
   typeface as the landing header logo (.logo-text). White so it reads over the photo
   background; a soft shadow keeps it legible on lighter images / the plain backdrop. */
.rsv-brand {
    /* Top margin is small because the shell already adds 1rem padding above; this keeps the
       visible gap above and below the wordmark roughly equal. */
    margin: 0.5rem 0 1.5rem;
    color: #fff;
    font-family: 'Damion', cursive;
    font-size: 2.25rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}
/* Cards become slightly more opaque so they stay readable over the background */
.rsv-shell .rsv-card {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.rsv-spinner-wrap {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rsv-spinner {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--rsv-border);
    border-top-color: var(--rsv-accent);
    animation: rsv-spin 0.7s linear infinite;
}
.rsv-spinner-sm {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    animation: rsv-spin 0.7s linear infinite;
    display: inline-block;
    vertical-align: middle;
}
@keyframes rsv-spin { to { transform: rotate(360deg); } }

/* ------------- Card ------------- */
.rsv-card {
    width: 100%;
    max-width: 520px;
    background: var(--rsv-surface);
    border: 1px solid var(--rsv-border);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(26, 24, 20, 0.04);
    overflow: hidden;
}
.rsv-card-center {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

/* ------------- Header strip ------------- */
.rsv-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--rsv-border);
    background: var(--rsv-surface-2);
}
.rsv-head-img {
    width: 44px; height: 44px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: var(--rsv-accent-soft);
    flex-shrink: 0;
}
.rsv-head-info { flex: 1; min-width: 0; }
.rsv-head-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--rsv-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rsv-head-meta {
    font-size: 0.75rem;
    color: var(--rsv-text-muted);
    margin-top: 1px;
    /* 2-line clamp — long addresses wrap rather than truncating mid-word. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    word-break: break-word;
}
.rsv-head-phone {
    display: inline-block; /* tel link doesn't need clamp; one line */
    -webkit-line-clamp: 1;
    color: var(--rsv-text);
    font-weight: 500;
    text-decoration: none;
    margin-top: 2px;
}
.rsv-head-phone:hover { color: var(--rsv-accent); }

/* -------- Utility helpers (replace inline styles in pages) -------- */
.rsv-mt-12 { margin-top: 0.75rem; }
.rsv-mt-16 { margin-top: 1rem; }
.rsv-mb-8 { margin-bottom: 0.5rem; }
.rsv-mb-12 { margin-bottom: 0.75rem; }
.rsv-text-center { text-align: center; }
.rsv-text-left { text-align: left; }
.rsv-pills-center { justify-content: center; }
.rsv-note-body {
    color: var(--rsv-text);
    font-size: 0.875rem;
    margin-top: 0.2rem;
    font-weight: 400;
}
.rsv-submit-btn--danger { background: var(--rsv-danger); }
.rsv-head-actions {
    display: flex;
    gap: 0.25rem;
}
.rsv-icon-btn {
    background: transparent;
    border: 1px solid var(--rsv-border);
    color: var(--rsv-text-muted);
    width: 32px; height: 32px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rsv-icon-btn:hover { background: var(--rsv-accent-soft); color: var(--rsv-text); }

/* -------- Language dropdown -------- */
.rsv-lang-wrap {
    position: relative;
    display: inline-block;
}
.rsv-lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 170px;
    background: var(--rsv-surface);
    border: 1px solid var(--rsv-border);
    border-radius: var(--rsv-radius);
    box-shadow: 0 8px 24px rgba(26, 24, 20, 0.12);
    padding: 4px;
    z-index: 60;
    max-height: 320px;
    overflow-y: auto;
}
.rsv-lang-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.6rem;
    background: transparent;
    border: none;
    color: var(--rsv-text);
    font-family: inherit;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    border-radius: var(--rsv-radius-sm);
    transition: background 0.12s ease;
}
.rsv-lang-item:hover { background: var(--rsv-accent-soft); }
.rsv-lang-item-on { background: var(--rsv-accent-soft); font-weight: 600; }
.rsv-lang-flag { font-size: 1rem; line-height: 1; }
.rsv-lang-name { flex: 1; }
.rsv-lang-check { color: var(--rsv-accent); font-weight: 700; }
.rsv-lang-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: transparent;
}

/* -------- RTL adjustments -------- */
.rsv-card[dir="rtl"] .rsv-lang-menu { right: auto; left: 0; }
.rsv-card[dir="rtl"] .rsv-lang-item { text-align: right; }
.rsv-card[dir="rtl"] .rsv-pills-scroll { direction: ltr; } /* date pills stay LTR for chronology */
.rsv-card[dir="rtl"] .rsv-phone-wrap { direction: ltr; } /* phone number stays LTR */
.rsv-card[dir="rtl"] .rsv-input[type="tel"],
.rsv-card[dir="rtl"] .rsv-input[type="email"],
.rsv-card[dir="rtl"] .rsv-otp-input,
.rsv-card[dir="rtl"] .rsv-code { direction: ltr; text-align: right; }
.rsv-card[dir="rtl"] .rsv-time-grid { direction: ltr; }
.rsv-card[dir="rtl"] .rsv-card-grid { direction: ltr; }
.rsv-card[dir="rtl"] .rsv-text-btn { direction: rtl; }
.rsv-card[dir="rtl"] .rsv-stepper-bar { flex-direction: row-reverse; }

/* ------------- Active reservation banner ------------- */
.rsv-active-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--rsv-accent-soft);
    border-bottom: 1px solid var(--rsv-border);
    color: var(--rsv-text);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease;
}
.rsv-active-banner:hover { background: var(--rsv-border); }
.rsv-active-arrow { font-size: 1.2rem; color: var(--rsv-text-muted); }

/* ------------- Step indicator ------------- */
.rsv-stepper-bar {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0 0 0.875rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--rsv-border);
}
.rsv-stepper-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.rsv-stepper-seg {
    height: 3px;
    background: var(--rsv-border);
    border-radius: 2px;
    transition: background 0.2s ease;
}
.rsv-stepper-seg-on { background: var(--rsv-accent); }
.rsv-stepper-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--rsv-text-dim);
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rsv-stepper-label-on { color: var(--rsv-text); }
.rsv-recap {
    background: var(--rsv-accent-soft);
    border: 1px solid var(--rsv-border);
    border-radius: var(--rsv-radius);
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    color: var(--rsv-text);
    margin-bottom: 0.875rem;
    font-weight: 500;
}

/* ------------- Body ------------- */
.rsv-body { padding: 1rem; }
.rsv-body-center { text-align: center; padding: 2rem 1.5rem; }

.rsv-row { margin-bottom: 0.875rem; }
.rsv-row-split {
    display: flex;
    gap: 0.75rem;
}
.rsv-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.rsv-full { grid-column: 1 / -1; }
.rsv-mt-4 { margin-top: 0.25rem; }
.rsv-mt-8 { margin-top: 0.5rem; }

.rsv-label-sm {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--rsv-text-muted);
    margin-bottom: 0.4rem;
}
.rsv-amount {
    float: right;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rsv-text);
    letter-spacing: 0;
}

/* ------------- Pills ------------- */
.rsv-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.rsv-pills-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}
.rsv-pills-scroll::-webkit-scrollbar { display: none; }

.rsv-pill, .rsv-time-pill {
    flex: 0 0 auto;
    background: var(--rsv-surface);
    border: 1px solid var(--rsv-border);
    color: var(--rsv-text);
    padding: 0.5rem 0.8rem;
    border-radius: var(--rsv-radius);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 38px;
    text-align: center;
    transition: all 0.12s ease;
}
.rsv-pill:hover:not(:disabled), .rsv-time-pill:hover:not(:disabled) {
    border-color: var(--rsv-text);
}
.rsv-pill-on, .rsv-time-pill.rsv-pill-on {
    background: var(--rsv-accent);
    border-color: var(--rsv-accent);
    color: #fff;
}
.rsv-pill-off, .rsv-time-pill.rsv-pill-off {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}
.rsv-pill-more {
    background: transparent;
    color: var(--rsv-text-muted);
    border-style: dashed;
    font-weight: 600;
}

.rsv-date-pill {
    flex: 0 0 auto;
    background: var(--rsv-surface);
    border: 1px solid var(--rsv-border);
    color: var(--rsv-text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--rsv-radius);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.12s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    gap: 2px;
    min-width: 52px;
}
.rsv-date-pill:hover:not(:disabled) { border-color: var(--rsv-text); }
.rsv-date-pill.rsv-pill-on { background: var(--rsv-accent); border-color: var(--rsv-accent); color: #fff; }
.rsv-date-pill.rsv-pill-off { opacity: 0.35; cursor: not-allowed; }
.rsv-date-day { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.rsv-date-num { font-size: 1.1rem; font-weight: 700; }
.rsv-date-mon { font-size: 0.6rem; color: inherit; opacity: 0.7; }

.rsv-time-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.3rem;
}
@media (max-width: 420px) {
    .rsv-time-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ------------- Input ------------- */
.rsv-input {
    width: 100%;
    background: var(--rsv-surface);
    border: 1px solid var(--rsv-border);
    border-radius: var(--rsv-radius);
    color: var(--rsv-text);
    padding: 0.625rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.12s ease;
    outline: none;
}
.rsv-input:focus { border-color: var(--rsv-text); }
.rsv-input::placeholder { color: var(--rsv-text-dim); }
.rsv-input:disabled { background: var(--rsv-surface-2); color: var(--rsv-text-muted); cursor: not-allowed; }
.rsv-textarea { resize: none; }

.rsv-input-wrap { display: flex; }
.rsv-phone-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--rsv-border);
    border-radius: var(--rsv-radius);
    overflow: hidden;
    background: var(--rsv-surface);
}
.rsv-phone-wrap:focus-within { border-color: var(--rsv-text); }
.rsv-phone-prefix {
    padding: 0.625rem 0.5rem 0.625rem 0.75rem;
    color: var(--rsv-text-muted);
    border-right: 1px solid var(--rsv-border);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    background: var(--rsv-surface-2);
}
.rsv-phone-input {
    border: none !important;
    background: transparent !important;
    flex: 1;
}

/* ------------- Details (more options) ------------- */
.rsv-details {
    background: transparent;
    border: none;
}
.rsv-summary {
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--rsv-text-muted);
    padding: 0.25rem 0;
    user-select: none;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.rsv-summary::before {
    content: '+';
    font-size: 1rem;
    font-weight: 400;
}
.rsv-details[open] .rsv-summary::before { content: '−'; }
.rsv-summary::-webkit-details-marker { display: none; }
.rsv-summary:hover { color: var(--rsv-text); }

.rsv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.rsv-chip {
    background: var(--rsv-surface);
    border: 1px solid var(--rsv-border);
    color: var(--rsv-text-muted);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    transition: all 0.12s ease;
}
.rsv-chip:hover { border-color: var(--rsv-text-muted); color: var(--rsv-text); }
.rsv-chip-on {
    background: var(--rsv-accent);
    border-color: var(--rsv-accent);
    color: #fff;
}

/* ------------- Card payment ------------- */
.rsv-card-row {
    background: var(--rsv-surface-2);
    border: 1px solid var(--rsv-border);
    border-radius: var(--rsv-radius);
    padding: 0.75rem;
    margin: 0.875rem 0;
}
.rsv-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 100px;
    gap: 0.5rem;
}
.rsv-card-grid .rsv-input:nth-child(1),
.rsv-card-grid .rsv-input:nth-child(2) { grid-column: 1 / -1; }
.rsv-card-grid .rsv-input:nth-child(3) { grid-column: 1 / 2; }
.rsv-card-grid .rsv-input:nth-child(4) { grid-column: 2 / 4; }
@media (min-width: 480px) {
    .rsv-card-grid {
        grid-template-columns: 1fr 1fr;
    }
    .rsv-card-grid .rsv-input:nth-child(1) { grid-column: 1 / -1; }
    .rsv-card-grid .rsv-input:nth-child(2) { grid-column: 1 / -1; }
    .rsv-card-grid .rsv-input:nth-child(3) { grid-column: 1 / 2; }
    .rsv-card-grid .rsv-input:nth-child(4) { grid-column: 2 / 3; }
}
.rsv-input-cvc { letter-spacing: 0.2em; }
.rsv-muted-xs { font-size: 0.7rem; color: var(--rsv-text-dim); }

/* ------------- KVKK consent (prominent) ------------- */
.rsv-kvkk-check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem;
    margin: 0.875rem 0 0;
    cursor: pointer;
    background: var(--rsv-surface-2);
    border: 1px solid var(--rsv-border);
    border-radius: var(--rsv-radius);
    transition: border-color 0.15s ease;
    user-select: none;
}
.rsv-kvkk-check:hover { border-color: var(--rsv-text-muted); }
.rsv-kvkk-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.rsv-kvkk-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--rsv-border-strong);
    border-radius: 5px;
    background: var(--rsv-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    margin-top: 1px;
}
.rsv-kvkk-check input:checked ~ .rsv-kvkk-box {
    background: var(--rsv-accent);
    border-color: var(--rsv-accent);
}
.rsv-kvkk-check input:checked ~ .rsv-kvkk-box::after {
    content: '';
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}
.rsv-kvkk-label {
    flex: 1;
    font-size: 0.85rem;
    color: var(--rsv-text);
    line-height: 1.4;
    font-weight: 500;
}
.rsv-kvkk-label a { color: var(--rsv-text); text-decoration: underline; }

/* ------------- Forget me pill ------------- */
.rsv-text-pill {
    background: transparent;
    border: 1px solid var(--rsv-border);
    color: var(--rsv-text-muted);
    padding: 0 0.7rem;
    height: 32px;
    border-radius: 16px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    letter-spacing: 0.02em;
}
.rsv-text-pill:hover { background: var(--rsv-accent-soft); color: var(--rsv-text); border-color: var(--rsv-text-muted); }

/* ------------- Submit ------------- */
.rsv-submit-btn {
    width: 100%;
    background: var(--rsv-accent);
    color: #fff;
    border: none;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--rsv-radius);
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 0.75rem;
    font-family: inherit;
}
.rsv-submit-btn:hover:not(:disabled) { background: var(--rsv-accent-hover); }
.rsv-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.rsv-text-btn {
    background: transparent;
    border: none;
    color: var(--rsv-text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-top: 0.25rem;
    width: 100%;
    text-align: center;
}
.rsv-text-btn:hover { color: var(--rsv-text); }

.rsv-foot-call {
    text-align: center;
    color: var(--rsv-text-muted);
    font-size: 0.78rem;
    margin-top: 0.75rem;
}
.rsv-foot-call a { color: var(--rsv-text); text-decoration: none; font-weight: 500; }
.rsv-foot-call a:hover { text-decoration: underline; }

/* ------------- Error / muted ------------- */
.rsv-error-inline {
    background: rgba(196, 69, 58, 0.08);
    border: 1px solid rgba(196, 69, 58, 0.25);
    color: var(--rsv-danger);
    padding: 0.5rem 0.75rem;
    border-radius: var(--rsv-radius);
    font-size: 0.82rem;
    margin: 0.5rem 0;
}
.rsv-muted { color: var(--rsv-text-muted); }
.rsv-muted-sm { color: var(--rsv-text-muted); font-size: 0.85rem; }
.rsv-h1 { font-size: 1.4rem; font-weight: 700; margin: 0 0 0.5rem; }
.rsv-h2 { font-size: 1.15rem; font-weight: 700; margin: 0.5rem 0; }

/* ------------- OTP ------------- */
.rsv-otp-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.4em;
    margin: 1rem 0;
    padding: 0.75rem;
    font-weight: 600;
}

/* ------------- Success ------------- */
.rsv-gate-lock {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--rsv-accent-soft);
    color: var(--rsv-text);
    font-size: 1.4rem;
    line-height: 48px;
    margin: 0 auto 0.75rem;
}

.rsv-check-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--rsv-success);
    color: #fff;
    font-size: 1.5rem;
    line-height: 48px;
    margin: 0 auto 0.75rem;
    font-weight: 600;
}
.rsv-summary-card {
    background: var(--rsv-surface-2);
    border: 1px solid var(--rsv-border);
    border-radius: var(--rsv-radius);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    text-align: left;
}
.rsv-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    color: var(--rsv-text-muted);
    border-bottom: 1px solid var(--rsv-border);
}
.rsv-summary-line:last-child { border-bottom: none; }
.rsv-summary-line strong { color: var(--rsv-text); font-weight: 600; }
.rsv-code {
    font-family: 'SF Mono', 'Monaco', monospace;
    letter-spacing: 0.05em;
}

/* ------------- Shell footer ------------- */
.rsv-shell-footer {
    margin-top: 1.25rem;
    color: var(--rsv-text-dim);
    font-size: 0.72rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.rsv-shell-footer a { color: var(--rsv-text-muted); text-decoration: none; }
.rsv-shell-footer a:hover { color: var(--rsv-text); }

/* ------------- View page ------------- */
.rsv-view-status {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.rsv-status-Pending { background: #fff4d6; color: #8a6d10; }
.rsv-status-Confirmed { background: #e0f2e2; color: var(--rsv-success); }
.rsv-status-Seated { background: #e0f2e2; color: var(--rsv-success); }
.rsv-status-Completed { background: var(--rsv-accent-soft); color: var(--rsv-text-muted); }
.rsv-status-CancelledByCustomer,
.rsv-status-CancelledByStaff,
.rsv-status-NoShow {
    background: #fce4e2; color: var(--rsv-danger);
}

.rsv-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 1rem 0;
}
.rsv-view-item {
    background: var(--rsv-surface-2);
    border: 1px solid var(--rsv-border);
    border-radius: var(--rsv-radius);
    padding: 0.625rem 0.75rem;
}
.rsv-view-item-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rsv-text-muted);
    margin-bottom: 0.25rem;
}
.rsv-view-item-value {
    font-size: 1rem;
    color: var(--rsv-text);
    font-weight: 600;
}
.rsv-view-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: 1rem;
}
.rsv-action-btn {
    background: var(--rsv-surface);
    border: 1px solid var(--rsv-border);
    color: var(--rsv-text);
    padding: 0.625rem 0.75rem;
    border-radius: var(--rsv-radius);
    font-family: inherit;
    font-size: 0.825rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}
.rsv-action-btn:hover:not(:disabled) { border-color: var(--rsv-text); }
.rsv-action-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.rsv-action-btn.danger { color: var(--rsv-danger); }
.rsv-action-btn.danger:hover:not(:disabled) { border-color: var(--rsv-danger); background: #fff5f4; }
.rsv-action-btn.primary {
    background: var(--rsv-accent);
    color: #fff;
    border-color: var(--rsv-accent);
    grid-column: 1 / -1;
}
.rsv-action-btn.primary:hover:not(:disabled) { background: var(--rsv-accent-hover); border-color: var(--rsv-accent-hover); }

.rsv-deposit-pill {
    margin-top: 0.5rem;
    background: var(--rsv-accent-soft);
    color: var(--rsv-text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--rsv-radius);
    font-size: 0.82rem;
}

/* ------------- Modal ------------- */
.rsv-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 24, 20, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
    animation: rsv-fade 0.15s ease;
}
@keyframes rsv-fade { from { opacity: 0; } }
.rsv-modal {
    background: var(--rsv-surface);
    border: 1px solid var(--rsv-border);
    border-radius: 10px;
    padding: 1.25rem;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.rsv-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--rsv-text);
}
