/* CWA Ride Booking Request — supplements register.css */
/* Full width: the booking form fills 100% of its container (2.5.0). */
.cwa-booking-wrap .cwa-reg-box {
    max-width: none;
}

/* Live availability notice under the preferred date/time row. */
.cwa-avail-msg {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px;
}
.cwa-avail-msg.bad {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.cwa-avail-msg.ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* flatpickr: mark days that are partly booked with a small amber dot.
   Fully-booked days are disabled by flatpickr and greyed out by its own CSS. */
.flatpickr-day.cwa-day-partial {
    position: relative;
}
.flatpickr-day.cwa-day-partial::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e0a800;
}
.cwa-cal-legend { margin-top: 6px; }

/* Ride-accept page rendered inside wp-admin (email link landing).
   Fit the admin content area and stay responsive on narrow screens. */
.cwa-accept-in-admin { margin: 0; padding: 0; max-width: 100%; }
.cwa-accept-in-admin .cwa-reg-wrap { max-width: 720px; margin: 24px auto; }
@media (max-width: 600px) {
    .cwa-accept-in-admin .cwa-reg-wrap { max-width: none; margin: 12px auto; padding: 0 12px; }
}

.cwa-book-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #1a3a4c;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 14px 0 8px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 14px;
}
.cwa-book-section-title:first-of-type {
    padding-top: 0;
}

/* Wider layout for booking form */
@media (min-width: 540px) {
    .cwa-booking-wrap .cwa-reg-box {
        padding: 36px 44px;
    }
}

/* Ride details card on accept page */
.cwa-ride-details {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}
.cwa-detail-row {
    display: flex;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f4f8;
    font-size: 14px;
    align-items: flex-start;
    gap: 12px;
}
.cwa-detail-row:last-child { border-bottom: none; }
.cwa-detail-label {
    width: 110px;
    flex-shrink: 0;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}
.cwa-detail-value {
    color: #1a3a4c;
    flex: 1;
    line-height: 1.5;
}
.cwa-detail-highlight {
    background: #fffbeb;
}
.cwa-detail-highlight .cwa-detail-label {
    color: #92400e;
}
.cwa-detail-highlight .cwa-detail-value {
    color: #78350f;
}

/* ── Responsive: stack the ride-detail rows on narrow screens ──────────────
   The fixed-width label column crowds the value on small phones, so switch
   the row to a vertical stack and let the label sit above its value. */
@media (max-width: 420px) {
    .cwa-detail-row {
        flex-direction: column;
        gap: 2px;
    }
    .cwa-detail-label {
        width: auto;
    }
}
