:root {
    --ecr-blue: #0b5fa5;
    --ecr-blue-dark: #084a82;
    --ecr-green: #dff5e4;
    --ecr-green-border: #2f9d50;
    --ecr-red: #fde2e2;
    --ecr-red-border: #c0392b;
    --ecr-grey: #eeeeee;
    --ecr-grey-border: #b8b8b8;
    --ecr-selected: #dcecff;
}

.ecr-booking-calendar-wrap {
    width: 100%;
}

.ecr-time-slot-board {
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid #d9e3ef;
    border-radius: 12px;
    padding: 16px;
}

.ecr-slot-board-header {
    margin-bottom: 14px;
}

.ecr-slot-board-title {
    font-size: 18px;
    line-height: 1.3;
    color: var(--ecr-blue);
    font-weight: 600;
    margin-bottom: 4px;
}

.ecr-slot-board-note {
    font-size: 14px;
    color: #666666;
    margin-bottom: 10px;
}

.ecr-slot-legend {
    font-size: 13px;
    color: #666666;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.legend-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    vertical-align: -2px;
    margin-right: 4px;
    border: 1px solid transparent;
}

.legend-dot.available {
    background: var(--ecr-green);
    border-color: var(--ecr-green-border);
}

.legend-dot.booked {
    background: var(--ecr-red);
    border-color: var(--ecr-red-border);
}

.legend-dot.disabled {
    background: var(--ecr-grey);
    border-color: var(--ecr-grey-border);
}

.legend-dot.selected {
    background: var(--ecr-selected);
    border-color: var(--ecr-blue);
}

.ecr-time-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}

.ecr-time-slot {
    border: 1px solid #d0d7df;
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    background: #ffffff;
    color: #444444;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.ecr-time-slot:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.ecr-time-slot-available {
    background: var(--ecr-green);
    border-color: var(--ecr-green-border);
    color: #1e6b35;
}

.ecr-time-slot-booked {
    background: var(--ecr-red);
    border-color: var(--ecr-red-border);
    color: #8c241c;
}

.ecr-time-slot-disabled {
    background: var(--ecr-grey);
    border-color: var(--ecr-grey-border);
    color: #888888;
    cursor: not-allowed;
}

.ecr-time-slot.is-selected {
    background: var(--ecr-selected);
    border-color: var(--ecr-blue);
    color: var(--ecr-blue-dark);
    box-shadow: 0 0 0 3px rgba(11, 95, 165, 0.18);
}

.ecr-slot-message {
    padding: 12px 14px;
    border-radius: 10px;
    background: #eef6ff;
    color: #245a86;
    font-size: 14px;
}

.ecr-slot-message-error {
    background: #fde2e2;
    color: #8c241c;
}

.ecr-booked-slot-details {
    margin-top: 14px;
}

.ecr-booked-slot-card {
    border: 1px solid #d9e3ef;
    border-left: 5px solid var(--ecr-blue);
    border-radius: 10px;
    padding: 14px;
    background: #ffffff;
    color: #555555;
    font-size: 14px;
}

.ecr-booked-slot-card h4 {
    margin: 0 0 8px;
    color: var(--ecr-blue);
    font-size: 16px;
    font-weight: 600;
}


/* V2 selected slot visibility fix */
.ecr-time-slot.is-selected,
.ecr-time-slot.is-selected:hover,
.ecr-time-slot-available.is-selected,
.ecr-time-slot-available.is-selected:hover {
    background: var(--ecr-blue) !important;
    border-color: var(--ecr-blue-dark) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 0 0 4px rgba(11, 95, 165, 0.22), 0 6px 14px rgba(8, 74, 130, 0.20);
    transform: translateY(-1px);
}

.ecr-selected-slot-summary {
    display: none;
    margin-top: 14px;
    border-radius: 12px;
    background: var(--ecr-blue);
    color: #ffffff;
    padding: 14px 16px;
    border: 1px solid var(--ecr-blue-dark);
    box-shadow: 0 6px 18px rgba(8, 74, 130, 0.18);
}

.ecr-selected-slot-summary.ecr-show {
    display: block;
}

.ecr-selected-slot-title {
    font-size: 13px;
    opacity: 0.88;
    margin-bottom: 2px;
}

.ecr-selected-slot-value {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.ecr-selected-slot-note {
    font-size: 13px;
    opacity: 0.88;
    margin-top: 4px;
}
