﻿/* ANDO — Reservation page */

.ao-reservation-header {
    text-align: center; margin-bottom: 20px; position: relative; padding-top: 8px;
}
.ao-reservation-header__back {
    position: absolute; top: 0; inset-inline-start: 0; width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1.5px solid var(--ao-border);
    color: var(--ao-ink); background: var(--ao-surface);
}
.ao-reservation-crest { width: 56px; height: 56px; margin: 0 auto 10px; object-fit: contain; }
.ao-reservation-kicker {
    display: block; margin-bottom: 6px; font-family: var(--ao-font-en);
    font-style: italic; color: var(--ao-primary); font-size: 1.05rem;
}
.ao-reservation-title {
    margin: 0 0 8px; font-size: clamp(1.35rem, 4.5vw, 1.75rem); font-weight: 800; line-height: 1.25;
}
.ao-reservation-subtitle {
    margin: 0 auto; max-width: 42ch; color: var(--ao-ink-muted); font-size: 0.88rem; line-height: 1.55;
}
.ao-reservation-alert {
    display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 14px;
    border-radius: 14px; border: 1.5px solid var(--ao-border); background: var(--ao-surface);
    font-size: 0.9rem; color: var(--ao-ink);
}
.ao-reservation-alert--success { border-color: rgba(47, 93, 58, 0.35); background: rgba(47, 93, 58, 0.06); }
.ao-reservation-alert--error { border-color: rgba(139, 30, 30, 0.35); background: rgba(139, 30, 30, 0.06); color: var(--ao-danger); }
.ao-reservation-alert--info { border-style: dashed; }
.ao-reservation-alert i { margin-top: 2px; flex-shrink: 0; color: var(--ao-primary); }
.ao-reservation-alert ul { margin: 0; padding-inline-start: 18px; }
.ao-reservation-form { display: flex; flex-direction: column; gap: 4px; }
.ao-reservation-row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .ao-reservation-row--half { grid-template-columns: 1fr 1fr; } }

.ao-slot-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 8px; max-height: 220px; overflow-y: auto; padding: 2px; scrollbar-width: thin;
}
.ao-slot-chip {
    position: relative; min-height: 40px; padding: 8px 6px; border-radius: var(--ao-radius-pill);
    border: 1.5px solid var(--ao-border); background: var(--ao-surface); color: var(--ao-ink);
    text-align: center; cursor: pointer; font-weight: 700; font-size: 0.84rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ao-slot-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ao-slot-chip.is-selected, .ao-slot-chip:has(input:checked) {
    background: var(--ao-primary); color: #fff; border-color: var(--ao-primary);
}
.ao-slot-chip:hover { background: var(--ao-surface-hover); }
.ao-slot-chip.is-selected:hover, .ao-slot-chip:has(input:checked):hover { background: var(--ao-primary-deep); }

.ao-tables-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 10px; max-height: 240px; overflow-y: auto; padding: 2px;
}
.ao-table-chip {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 78px; padding: 10px 8px; border-radius: 14px;
    border: 1.5px solid var(--ao-border); background: var(--ao-surface); color: var(--ao-ink);
    text-align: center; cursor: pointer;
}
.ao-table-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ao-table-chip strong { font-size: 0.95rem; }
.ao-table-chip small { font-size: 0.72rem; color: var(--ao-ink-muted); }
.ao-table-chip__status { font-size: 0.68rem; color: var(--ao-ink-muted); }
.ao-table-chip.is-available { border-color: rgba(47, 93, 58, 0.35); }
.ao-table-chip.is-available .ao-table-chip__status { color: var(--ao-success); }
.ao-table-chip.is-selected, .ao-table-chip:has(input:checked) {
    background: var(--ao-primary); color: #fff; border-color: var(--ao-primary);
}
.ao-table-chip.is-selected small, .ao-table-chip.is-selected .ao-table-chip__status,
.ao-table-chip:has(input:checked) small, .ao-table-chip:has(input:checked) .ao-table-chip__status {
    color: rgba(255, 255, 255, 0.85);
}
.ao-table-chip.is-busy, .ao-table-chip.is-disabled, .ao-table-chip.is-pending { opacity: 0.55; cursor: not-allowed; }
.ao-table-chip.is-reserved { opacity: 0.45; border-style: dashed; }
.ao-reservation-submit { width: 100%; margin-top: 8px; min-height: 50px; font-size: 1rem; }

.datepicker-plot-area {
    background: var(--ao-bg) !important; border: 1.5px solid var(--ao-border) !important;
    color: var(--ao-ink) !important; box-shadow: var(--ao-shadow-md) !important;
}
.datepicker-plot-area .datepicker-day-view .table-days td span,
.datepicker-plot-area .datepicker-year-view .year-item,
.datepicker-plot-area .datepicker-month-view .month-item,
.datepicker-plot-area .toolbox .btn-today,
.datepicker-plot-area .toolbox .btn-submit {
    color: var(--ao-ink) !important; background: transparent !important;
}
.datepicker-plot-area .datepicker-day-view .table-days td.selected span,
.datepicker-plot-area .datepicker-day-view .table-days td span.selected {
    background: var(--ao-primary) !important; color: #fff !important; border: none !important; text-shadow: none !important;
}
.datepicker-plot-area .datepicker-day-view .table-days td span:hover,
.datepicker-plot-area .datepicker-year-view .year-item:hover,
.datepicker-plot-area .datepicker-month-view .month-item:hover {
    background: rgba(128, 0, 47, 0.1) !important; border: none !important;
}
.datepicker-plot-area .toolbox { border-top: 1px solid var(--ao-border) !important; }

@media (max-width: 640px) {
    .ao-slot-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
    .ao-tables-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
