/* =========================================================
   ITIVOS BOOKING
   Minimal / Clean
   ========================================================= */
#itivos-booking-widget-customer-data {
    margin-top: 25px;
}
#itivos-booking-widget-customer-data .floating-field {
    padding: 0px;
    margin: 0px;
}
#itivos-booking-widget-customer-data .content-input-2col {
    padding-top: 10px;
}
.itivos-booking-divider-data-customer {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0;
  color: #a6a6a670;
  font-weight: bold;
  font-size: 12px;
}
.itivos-booking-divider-data-customer .text {
  display: inline-block;
  text-transform: lowercase;
  padding: 0 15px;
}

.itivos-booking-divider-data-customer .text::first-letter {
  text-transform: uppercase;
}

.itivos-booking-divider-data-customer::before,
.itivos-booking-divider-data-customer::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #cccccc3b;
}

.itivos-booking-divider-data-customer::before {
  margin-right: 10px;
}

.itivos-booking-divider-data-customer::after {
  margin-left: 10px;
}
.itivos-booking-header {
    margin-bottom: 25px;
}
.itivos-booking-header h1,
.itivos-booking-header h2,
.itivos-booking-header h3, 
.itivos-booking-header h4 {
    margin-bottom: 0px;
}
.disabledByCodeBooking {
    background-color: #fafbfc !important;
    cursor: progress !important;
}
.itivos-booking-confirm-content {
    display: flex;
    justify-content: end;
    margin-top: 25px;
}
.itivos-booking-widget {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(300px, 1fr);
    gap: 24px;
    align-items: start;
}

.itivos-booking-content {
    background: #fff;
}

/* =========================================================
   CALENDAR
   ========================================================= */

.calendar-wrapper {
    background: #fff;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

/* Header */

.calendar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f2;
}

.calendar-title {
    flex: 1;
    text-align: center;
}

.calendar-title h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    color: #202124;
}

.calendar-title .year {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1;
    color: #8a9096;
    font-weight: 400;
}

/* Navigation */

.nav-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e1e5e8;
    border-radius: 7px;
    background: #fff;

    color: #555b61;
    font-size: 15px;

    cursor: pointer;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease;

    text-decoration: none;
    flex-shrink: 0;
}

.nav-btn:hover:not(.disabled) {
    background: #f6f7f8;
    border-color: #d6dade;
    color: #202124;
}

.nav-btn.disabled {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Weekdays */

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;

    margin-bottom: 6px;

    color: #8a9096;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.weekdays span {
    padding: 5px 0;
    text-align: center;
}

/* Days */

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day-cell {
    aspect-ratio: 1;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 3px;

    border: 1px solid transparent;
    border-radius: 7px;

    background: #f7f8f9;
    color: #555b61;

    font-size: 13px;
    font-weight: 500;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease;

    cursor: default;
}

.day-cell.empty {
    background: transparent;
    cursor: default;
}

/* Available */

.day-cell.available {
    background: #fff;
    border-color: #dfe4e7;
    color: #202124;
    cursor: pointer;
}

.day-cell.available:hover {
    background: #f5f8f6;
    border-color: #b9d8c2;
    color: #24713b;
}

/* Active */

.day-cell.available.active {
    background: #202124;
    border-color: #202124;
    color: #fff;
}

/* Today */

.day-cell.today {
    background: #f1f5f3;
    border-color: #c9ddd0;
    color: #24713b;
    font-weight: 600;
}

.day-cell.today::after {
    content: '';

    position: absolute;
    bottom: 4px;
    left: 50%;

    width: 3px;
    height: 3px;

    background: #24713b;
    border-radius: 50%;

    transform: translateX(-50%);
}

/* Today + active */

.day-cell.today.available.active {
    background: #202124;
    border-color: #202124;
    color: #fff;
}

.day-cell.today.available.active::after {
    background: #fff;
}

/* Unavailable */

.day-cell.unavailable {
    background: #f8f9fa;
    color: #b4b9be;
    opacity: .65;
    cursor: not-allowed;
}

/* Slot indicator */

.day-cell .slot-indicator {
    margin-top: 2px;

    color: #24713b;
    font-size: 8px;
    line-height: 1;
}

.day-cell.available.active .slot-indicator {
    color: rgba(255, 255, 255, .75);
}
.slot-indicator.slot-empty {
    color: red;
}

/* =========================================================
   SLOTS PANEL
   ========================================================= */

.slots-panel {
    position: sticky;
    top: 20px;

    min-height: 200px;
    padding: 24px;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.slots-panel h3 {
    margin: 0 0 4px;

    color: #202124;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.slots-panel .date-display {
    margin: 0 0 20px;

    color: #8a9096;
    font-size: 13px;
    line-height: 1.4;
}

/* Slots */

.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;

    max-height: 500px;
    overflow-y: auto;

    padding-right: 3px;
}

.slots-grid::-webkit-scrollbar {
    width: 4px;
}

.slots-grid::-webkit-scrollbar-track {
    background: transparent;
}

.slots-grid::-webkit-scrollbar-thumb {
    background: #d9dde0;
    border-radius: 4px;
}

/* Slot button */

.slot-btn {
    padding: 10px 8px;

    border: 1px solid #e1e5e8;
    border-radius: 7px;

    background: #fff;
    color: #444a50;

    font-size: 13px;
    font-weight: 500;
    text-align: center;

    cursor: pointer;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.slot-btn:hover:not(.booked) {
    background: #f5f8f6;
    border-color: #b9d8c2;
    color: #24713b;
}

/* Available */

.slot-btn.available {
    border-color: #d7e5db;
    color: #24713b;
}

/* Booked */

.slot-btn.booked {
    background: #f7f8f9;
    border-color: #e5e7eb;
    color: #b0b5ba;
    cursor: not-allowed;
    opacity: .7;
}

/* Selected */

.slot-btn.selected {
    background: #202124 !important;
    border-color: #202124 !important;
    color: #fff !important;
}

/* Status */

.slot-btn .slot-status {
    display: block;

    margin-top: 3px;

    font-size: 10px;
    line-height: 1.2;
}

.slot-btn.available .slot-status {
    color: #24713b;
}

.slot-btn.booked .slot-status {
    color: #aeb3b8;
}

.slot-btn.selected .slot-status {
    color: rgba(255, 255, 255, .65);
}

/* =========================================================
   NO SLOTS
   ========================================================= */

.no-slots {
    padding: 40px 20px;

    color: #8a9096;
    text-align: center;
}

.no-slots .icon {
    margin-bottom: 12px;

    color: #c2c7cb;
    font-size: 32px;
}

/* =========================================================
   CONFIG INFO
   ========================================================= */

.config-info {
    margin-top: 18px;
    padding: 13px 14px;

    background: #f7f8f9;
    border: 1px solid #eceff1;
    border-radius: 7px;

    color: #7c8288;
    font-size: 12px;
    line-height: 1.5;
}

.config-info .label {
    color: #555b61;
    font-weight: 600;
}

.config-info .highlight {
    color: #24713b;
    font-weight: 600;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .itivos-booking-widget {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .slots-panel {
        position: static;
    }

    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .itivos-booking-confirm-content {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .calendar-wrapper,
    .slots-panel {
        padding: 16px;
        border-radius: 8px;
    }

    .calendar-title h2 {
        font-size: 15px;
    }

    .calendar-title .year {
        font-size: 11px;
    }

    .day-cell {
        font-size: 12px;
        border-radius: 6px;
    }

    .weekdays {
        font-size: 9px;
    }

    .nav-btn {
        width: 32px;
        height: 32px;
    }

    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}