/**
 * BPS Booking — structural CSS.
 *
 * Uses BPS skin CSS variables (--light-bg, --dark-bg, --brand-color etc.)
 * from the active palette. No colour overrides here.
 */

.bps-booking-calendar {
    margin: 2rem 0;
}

.bps-booking-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.bps-booking-toolbar label {
    font-weight: 600;
    font-size: 0.875rem;
}

.bps-booking-tz-selector {
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.15));
    background: var(--light-bg, #fff);
    /* 🔴 BUG-988, same shape as the calendar card: this control paints its own LIGHT
       background from `--light-bg`, so it must not take its ink from `--text-color`,
       which a BPS `.dark` section sets to #fff — white text in a white box.
       The two tokens do not move together. Pinned to the light-surface ink.
       (`.bps-booking-btn--secondary` below is deliberately left alone: its background
       is transparent, so inheriting the ambient ink is correct there.) */
    color: #1a1a1a;
    font-size: 0.875rem;
}

.bps-booking-panel {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: var(--light-bg2, #f8f9fa);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.bps-booking-panel--hidden {
    display: none;
}

.bps-booking-panel h3 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
}

.bps-booking-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.bps-booking-form textarea {
    width: 100%;
    min-height: 5rem;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.15));
    font-family: inherit;
    font-size: 0.875rem;
}

.bps-booking-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.bps-booking-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.bps-booking-btn--primary {
    background: var(--brand-color, #0073aa);
    color: #fff;
}

.bps-booking-btn--secondary {
    background: transparent;
    color: var(--text-color, inherit);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.2));
}

.bps-booking-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bps-booking-table {
    width: 100%;
    border-collapse: collapse;
}

.bps-booking-table th,
.bps-booking-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.bps-booking-table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.bps-booking-empty {
    padding: 2rem;
    text-align: center;
    opacity: 0.7;
}

/* ------------------------------------------------------------------ */
/*  Toasts                                                            */
/* ------------------------------------------------------------------ */

.bps-booking-toasts {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 24rem;
    pointer-events: none;
}

.bps-booking-toast {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    background: var(--dark-bg, #222);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
    transition: opacity 0.4s ease;
    pointer-events: auto;
}

.bps-booking-toast--success {
    background: #18a957;
}

.bps-booking-toast--error {
    background: #c0392b;
}

.bps-booking-toast--fade {
    opacity: 0;
}
