:root {
    --bac-primary: var(--et-global-color-primary, #024791);
    --bac-available: #ffffff;
    --bac-booked: #ffcdd2;
}

.bac-wrapper {
    font-family: inherit;
    max-width: 360px;
	margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

.bac-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--bac-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.bac-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--bac-primary);
}

.bac-weekdays,
.bac-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.bac-weekday {
    text-align: center;
    font-weight: 600;
    font-size: 12px;
}

.bac-day {
    padding: 8px;
    margin: 2px;
    text-align: center;
    border-radius: 4px;
    background: var(--bac-available);
}

.bac-day.booked {
    background: var(--bac-booked);
    color: #b71c1c;
}

.bac-day.empty {
    background: transparent;
}

.bac-legend {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.bac-legend-box {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 3px;
}

.bac-legend-box.available {
    background: var(--bac-available);
}

.bac-legend-box.booked {
    background: var(--bac-booked);
}
