/**
 * Market My Place - Booking section + slot editor styles.
 * @since 5.5.3
 */

/* ---- Property page booking section ---- */
.mmp-booking-intro {
    margin-bottom: 16px;
    color: #555;
}

.mmp-booking-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.mmp-booking-slot input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mmp-booking-slot-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
    background: #fff;
    min-width: 110px;
    text-align: center;
}

.mmp-booking-slot:hover .mmp-booking-slot-card {
    border-color: #94a3b8;
}

.mmp-booking-slot input[type="radio"]:checked + .mmp-booking-slot-card {
    border-color: #1e3a6e;
    background: #f0f4fa;
    box-shadow: 0 0 0 1px #1e3a6e;
}

.mmp-booking-slot input[type="radio"]:focus-visible + .mmp-booking-slot-card {
    outline: 2px solid #1e3a6e;
    outline-offset: 2px;
}

.mmp-booking-slot-date {
    font-weight: 700;
    font-size: 14px;
}

.mmp-booking-slot-time {
    font-size: 13px;
    color: #555;
}

.mmp-booking-message {
    min-height: 1em;
    margin-top: 10px;
    font-size: 14px;
}

.mmp-booking-success {
    color: #1f9d55;
    background: #f0fff4;
    border: 1px solid #1f9d55;
    border-radius: 4px;
    padding: 10px 14px;
}

.mmp-booking-error {
    color: #c0392b;
    background: #fff5f5;
    border: 1px solid #c0392b;
    border-radius: 4px;
    padding: 10px 14px;
}

/* Honeypot: visually removed, still in the DOM for bots. */
.mmp-bk-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ---- Slot editor (listing form) ---- */
.mmp-booking-listing-fields {
    margin: 20px 0;
}

.mmp-booking-slot-rows .mmp-booking-slot-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.mmp-booking-slot-row input[type="date"] {
    max-width: 180px;
}

.mmp-booking-slot-row input[type="time"] {
    max-width: 130px;
}

.mmp-booking-slot-sep {
    color: #777;
}

.mmp-booking-slot-remove {
    color: #c0392b;
    font-size: 18px;
    line-height: 1;
    padding: 4px 10px;
}

.mmp-booking-slot-add {
    margin-top: 4px;
}

@media (max-width: 575px) {
    .mmp-booking-slots {
        gap: 8px;
    }
    .mmp-booking-slot-card {
        min-width: calc(50vw - 40px);
    }
}
