/*
 * Shared components for booking2/ (vcon-native booking flow, zero Bootstrap classes).
 * vcon's own theme-vcon.css has no persistent inline-banner component (only .toast,
 * which is for transient floating messages) and no overlay/lightbox styled for dark
 * modal-like use, so these two small pieces are original additions, built from the
 * same vcon CSS variables/visual language as everything else in theme-vcon.css.
 */

/* ---------- Notice banners (replaces Bootstrap .alert-*) ---------- */
.notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-sm, 12px);
    border: 1px solid var(--line, rgba(255, 255, 255, 0.15));
    background: rgba(255, 255, 255, 0.04);
    color: var(--text, #f6f1ea);
    font-size: 14px;
    line-height: 1.5;
}
.notice i { flex: none; margin-top: 2px; }
.notice strong { font-weight: 600; }
.notice--warn { border-color: rgba(250, 204, 21, 0.4); background: rgba(250, 204, 21, 0.08); color: var(--warn, #facc15); }
.notice--danger { border-color: rgba(255, 45, 45, 0.4); background: rgba(255, 45, 45, 0.08); color: #ff8080; }
.notice--success { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.08); color: #86efac; }
.notice--info { border-color: rgba(255, 122, 26, 0.4); background: rgba(255, 122, 26, 0.08); color: var(--neon, #ff7a1a); }

/* ---------- Dark overlay (replaces Bootstrap .modal.fade) ---------- */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
}
.overlay.is-open { display: flex; }
.overlay__box {
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.overlay--image .overlay__box { max-width: min(900px, 92vw); }
.overlay--image .overlay__box img { width: 100%; height: auto; border-radius: var(--radius, 18px); display: block; }
.overlay__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--coal-2, #151519);
    border: 1px solid var(--line, rgba(255, 255, 255, 0.15));
    color: var(--text, #f6f1ea);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}
.overlay__close:hover { background: rgba(255, 90, 31, 0.15); border-color: var(--fire, #ff5a1f); }

/* ---------- Plain table (replaces Bootstrap .table) ---------- */
.plain-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--text, #f6f1ea); }
.plain-table th, .plain-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.1)); }
.plain-table th { color: var(--dim, #6f6a66); font-weight: 500; font-size: 13px; }
.plain-table tr:last-child td { border-bottom: none; }

/* ---------- Status-colored left border on .panel (check_booking.php / success.php) ---------- */
.panel--status-pending { border-left: 4px solid var(--warn, #facc15); }
.panel--status-confirmed { border-left: 4px solid var(--ok, #22c55e); }
.panel--status-cancelled { border-left: 4px solid var(--dim, #6f6a66); }
.panel--status-rejected { border-left: 4px solid var(--ember, #ff2d2d); }
.panel--status-refunded { border-left: 4px solid var(--fire, #ff5a1f); }
