/**
 * BeBooked – Product page booking widget
 *
 * Scoped under .bebooked-widget to avoid collisions with theme styles.
 */

/* -------------------------------------------------------------------------
 * Widget container
 * ---------------------------------------------------------------------- */

.bebooked-widget {
    margin: 1em 0 1.25em;
}

.bebooked-widget-price {
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 1em;
}

.bebooked-widget-field {
    margin-bottom: 1em;
}

.bebooked-widget-field label {
    display: block;
    margin-bottom: 0.35em;
    font-weight: 500;
    font-size: 0.9em;
}

.bebooked-widget-field .required {
    color: #cc0000;
    text-decoration: none;
    border: none;
    margin-left: 0.15em;
}

.bebooked-add-cart-layout {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
 * Quantity hint ("Number of People")
 * ---------------------------------------------------------------------- */

.bebooked-qty-hint {
    margin: 0 0 0.35em;
    font-size: 0.9em;
    font-weight: 500;
    color: #333;
}

/* -------------------------------------------------------------------------
 * Date input
 * ---------------------------------------------------------------------- */

.bebooked-date-input {
    width: 100%;
    box-sizing: border-box;
}

/* -------------------------------------------------------------------------
 * Additional information textarea
 * ---------------------------------------------------------------------- */

.bebooked-notes-input {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

/* -------------------------------------------------------------------------
 * Time slot grid
 * ---------------------------------------------------------------------- */

.bebooked-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 0.5em;
}

/* -------------------------------------------------------------------------
 * Individual time slot buttons
 * ---------------------------------------------------------------------- */

.bebooked-time-slot {
    padding: 0.45em 0.9em;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
    white-space: nowrap;
}

.bebooked-time-slot:hover:not(:disabled) {
    border-color: #a0a0a0;
    background: #f5f5f5;
}

.bebooked-time-slot.is-selected {
    background: #155724;
    border-color: #0d3b17;
    color: #fff;
}

.bebooked-time-slot--unavailable {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f0f0f0;
}

/* -------------------------------------------------------------------------
 * Loading / empty states
 * ---------------------------------------------------------------------- */

.bebooked-widget-loading {
    font-size: 0.9em;
    color: #666;
}

.bebooked-no-times {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

/* -------------------------------------------------------------------------
 * Form submission error notice
 * ---------------------------------------------------------------------- */

.bebooked-widget-notice {
    margin-bottom: 1em;
}

/* -------------------------------------------------------------------------
 * Standalone widget (own quantity field, submit button, AJAX message)
 * ---------------------------------------------------------------------- */

.bebooked-widget--standalone .bebooked-qty-input {
    width: 5em;
}

.bebooked-widget-submit {
    cursor: pointer;
}

.bebooked-widget-submit.loading {
    opacity: 0.6;
    cursor: default;
}

.bebooked-widget-message {
    margin-top: 0.75em;
    font-size: 0.9em;
}

.bebooked-widget-message--error {
    color: #cc0000;
}
