/* IWS Aquaman Boat Booking — frontend stylesheet. */

/* Hide WC Bookings' UTC timezone label on the date picker. */
.wc-bookings-date-picker-timezone-block {
    display: none;
}

/* Join-waitlist modal (fully-booked day popup). */
.iws-wl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em;
}

.iws-wl-modal {
    position: relative;
    background: #fff;
    border-radius: 6px;
    max-width: 26em;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5em 1.75em;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.iws-wl-modal-close {
    position: absolute;
    top: 0.4em;
    right: 0.5em;
    border: none;
    background: none;
    font-size: 1.6em;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0.2em;
}

.iws-wl-modal .iws-wl-title {
    margin-top: 0;
    padding-right: 1em;
}

/* "Call us too" nudge under the waitlist intro — the crew can sometimes
   squeeze people in past what the online calendar shows. */
.iws-wl-call-note {
    background: #eef5fc;
    border: 1px solid #cfe2f5;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.95em;
    line-height: 1.45;
}
.iws-wl-call-note a {
    white-space: nowrap;
}

/* Truly-full days (All-Captains view) are tagged .iws-wl-day by the waitlist
   JS so they read as tappable "join the waitlist" cells, not dead grey ones.
   Touch-visible: amber tint + readable number + a small "WL" badge — cursor
   alone isn't enough on iPad. Captain-off grey days are NOT tagged. */
.ui-datepicker-calendar td.iws-wl-day {
    cursor: pointer;
    position: relative;
    /* jQuery UI / WC disable pointer events on .ui-state-disabled cells, which
       swallows the click before our delegated handler can run. Re-enable it so
       the tagged full days are actually tappable. */
    pointer-events: auto !important;
}
/* WC Bookings paints the "fully booked" pink on the inner .ui-state-default
   element (the span/a that fills the cell), NOT the <td> — so a td background
   never shows. Paint that inner element green (full day reads as active), with a
   white day number. The .ui-state-default in the selector + !important beats
   WC's own pink rule. */
.ui-datepicker-calendar td.iws-wl-day,
.ui-datepicker-calendar td.iws-wl-day .ui-state-default,
.ui-datepicker-calendar td.iws-wl-day span,
.ui-datepicker-calendar td.iws-wl-day a {
    background: #2e8b57 !important;
    background-color: #2e8b57 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
/* "WL" badge as a high-contrast gold pill so it's actually legible on the cell. */
.ui-datepicker-calendar td.iws-wl-day::after {
    content: "WL";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 1px 3px;
    border-radius: 3px;
    background: #C49A2A;
    color: #ffffff;
}
