.calendar-block {
    flex: 1 1 320px;
    min-width: 280px;
}

.calendar-widget {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    padding: 12px 12px 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cal-month-year {
    font-weight: 600;
    font-size: 1rem;
    text-transform: capitalize;
}

.cal-nav {
    border: none;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cal-nav:hover:not(:disabled) {
    background: #e5e7eb;
}

.cal-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 4px;
}

.calendar-weekdays span {
    padding: 4px 0;
}

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

.calendar-day {
    position: relative;
    padding: 6px 4px 18px;
    text-align: center;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
    border: none;
    background: transparent;
}

.calendar-day span.day-number {
    display: block;
    margin-bottom: 2px;
}

.calendar-day .availability-indicator {
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    font-size: 0.65rem;
    white-space: nowrap;
    border-radius: 999px;
    padding: 1px 6px;
}

.calendar-day.today {
    outline: 1px solid #3b82f6;
}

.calendar-day.selected {
    background: #ba0c2f;
    color: #fff;
    box-shadow: 0 2px 6px rgba(186, 12, 47, 0.5);
}

.calendar-day.available:not(.disabled):hover {
    background: #ffe7ed;
}

.calendar-day.unavailable {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.calendar-day.past {
    opacity: 0.4;
    cursor: not-allowed;
}

.badge-one-slot {
    background: #fef3c7;
    color: #92400e;
}

.badge-two-slots {
    background: #dcfce7;
    color: #166534;
}

.badge-unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.slot-selector {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 8px;
}

.slot-selector button {
    flex: 1;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.slot-selector button:hover:not(:disabled) {
    background: #e5e7eb;
}

.slot-selector button.slot-selected {
    background: #ba0c2f;
    border-color: #ba0c2f;
    color: #fff;
    box-shadow: 0 2px 6px rgba(186, 12, 47, 0.5);
}

.slot-selector button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.selected-date-info {
    margin-top: 4px;
    padding: 8px;
    background: #eff6ff;
    border-radius: 8px;
    min-height: 32px;
    font-size: 0.85rem;
    box-sizing: border-box;
}

.debug-box {
    margin-top: 8px;
    font-size: 0.8rem;
    background: #e5e7eb;
    padding: 4px 6px;
    border-radius: 6px;
    font-family: monospace;
    white-space: pre-line;
}

h1 {
    margin-top: 0;
}
