/* Основные стили для календаря бронирования */
.excursion-booking-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.excursion-booking-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.booking-step {
    margin-bottom: 15px;
}

.booking-step label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.excursion-datepicker {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover {
    background-color: #f0f0f0;
}

.time-slot input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.time-slot input[type="radio"]:checked + label {
    color: #fff;
    background-color: #0073aa;
}

.time-slot label {
    display: block;
    padding: 5px;
    border-radius: 3px;
    cursor: pointer;
}

.time-slot.blocked {
    background-color: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
}

.time-slot.blocked label {
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.reserved {
    background-color: #fff3cd;
    color: #856404;
}

.time-slot.reserved label {
    cursor: not-allowed;
}

.time-slot.reserved::after {
    content: "Сейчас еще кто-то хочет записаться на это время";
    display: block;
    font-size: 0.7em;
    margin-top: 5px;
    color: #856404;
}

.whole-day-slot {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f7fc;
    border-left: 3px solid #0073aa;
}

.whole-day-separator {
    height: 1px;
    background-color: #ddd;
    margin: 15px 0;
}

.excursion-duration {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f7fc;
    border-left: 3px solid #0073aa;
}

.booking-errors {
    color: #dc3232;
    margin-top: 15px;
    padding: 10px;
    background-color: #f8d7da;
    border-left: 3px solid #dc3232;
}

.excursion-booking-notice {
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 3px solid #6c757d;
    margin: 20px 0;
}

.variation-booking-info {
    margin: 15px 0;
    padding: 10px;
    background-color: #f0f7fc;
    border-left: 3px solid #0073aa;
}

.variation-booking-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.next-available-slots {
    margin-top: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 0.9em;
}

.next-available-slots p {
    margin: 0 0 5px 0;
    font-weight: bold;
}

.next-available-slots ul {
    margin: 0;
    padding-left: 15px;
}

.next-available-slots li {
    margin-bottom: 3px;
}

/* Стили для админки */
.weekly-schedule-container .week-days {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.day-schedule {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.time-slots {
    margin-top: 10px;
}

.time-slot-inputs {
    margin-bottom: 5px;
}

.time-slot-inputs .time-slot {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding: 5px;
    background: #f5f5f5;
    border-radius: 3px;
    cursor: move;
}

.time-slot-inputs .time-slot .dashicons-menu {
    margin-right: 5px;
    color: #999;
    cursor: move;
}

.blocked-dates-list .blocked-date,
.specific-blocked-slots-list .specific-blocked-slot {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.blocked-dates-list .blocked-date input,
.specific-blocked-slots-list .specific-blocked-slot input {
    flex: 1;
    margin-right: 10px;
}

.booked-slots-list {
    list-style-type: none;
    padding-left: 0;
}

.booked-slots-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.wcfm-container .options_group {
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.wcfm-container .day-schedule {
    margin-bottom: 15px;
}

.wcfm-container .time-slot-inputs {
    margin-top: 10px;
}

.wcfm-container .add-time-slot,
.wcfm-container .add-blocked-date,
.wcfm-container .add-specific-blocked-slot {
    margin-top: 10px;
}

.wcfm-variation-booking-fields {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.booking_fields_tab { display: none; }
.booking_fields_tab.active { display: block; }

.import-export-buttons {
    margin-bottom: 20px;
}

.import-export-buttons .button {
    margin-right: 10px;
}

.discounts-container {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.early-discount, .group-discount {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.early-discount input, .group-discount input {
    margin-right: 10px;
}

.analytics-container {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.analytics-section {
    margin-bottom: 30px;
}



/* Стили для информации о скидках */
.booking-discounts-info {
    background-color: #f8f8f8;
    border-left: 4px solid #2e8ece;
    padding: 15px;
    margin-bottom: 20px;
}

.booking-discounts-info h4 {
    margin-top: 0;
    color: #2e8ece;
}

.discounts-list {
    margin-bottom: 0;
    padding-left: 20px;
}

.discounts-list li {
    margin-bottom: 5px;
}

/* Стили для уведомлений о других покупателях */
.booking-notices {
    margin-top: 15px;
}

.booking-notice {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.urgency-notice {
    background-color: #fff8e5;
    border-left: 4px solid #ffb900;
    color: #6d4c00;
}