.booking-calendar {
    --calendar-ink: #24263a;
    --calendar-accent: #4d5fc6;
    max-width: 420px;
    margin-top: 10px;
    padding: 16px;
    border: 1px solid #dfe1ec;
    border-radius: 12px;
    background: #fff;
    color: var(--calendar-ink);
    font: inherit;
    font-variant-numeric: tabular-nums;
}

.booking-calendar .booking-calendar-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.booking-calendar .booking-calendar-month {
    margin: 0;
    color: var(--calendar-ink);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
}

.booking-calendar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    box-shadow: none;
    background: #fff;
    color: var(--calendar-ink);
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    transform: none;
    transition: none;
}

.booking-calendar button:enabled:hover {
    border-color: #bcc3ec;
    background: #f0f2fc;
    color: var(--calendar-accent);
    box-shadow: none;
    transform: none;
}

.booking-calendar button:focus-visible {
    outline: 2px solid var(--calendar-accent);
    outline-offset: 2px;
}

.booking-calendar button[hidden] { display: none; }
.booking-calendar button:disabled { opacity: 1; color: #727687; cursor: not-allowed; background: #fff; }
.booking-calendar .booking-calendar-nav:disabled { opacity: 0.4; }
.booking-calendar .booking-calendar-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.booking-calendar .booking-calendar-weekdays,
.booking-calendar .booking-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.booking-calendar .booking-calendar-weekdays { margin-bottom: 8px; color: #62657a; font-size: 12px; font-weight: 600; text-align: center; }
.booking-calendar .booking-calendar-body { position: relative; min-height: 224px; }
.booking-calendar .booking-calendar-loader {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    background: rgb(255 255 255 / 72%);
}
.booking-calendar .booking-calendar-loader[hidden] { display: none; }
.booking-calendar .booking-calendar-loader span {
    width: 32px;
    height: 32px;
    border: 3px solid #dfe1ec;
    border-top-color: var(--calendar-accent);
    border-radius: 50%;
    animation: booking-calendar-spin 700ms linear infinite;
}
.booking-calendar .booking-calendar-day[data-status="available"] { border-color: #dfe1ec; }
.booking-calendar .booking-calendar-day[aria-pressed="true"] { color: #fff; border-color: var(--calendar-accent); background: var(--calendar-accent); font-weight: 700; }
.booking-calendar .booking-calendar-day.booking-calendar-outside { color: #a2a5af; }
.booking-calendar .booking-calendar-unavailable { color: #727687; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.booking-calendar .booking-calendar-day[data-status="unknown"] { background: #f4f4f8; color: #727687; }
.booking-calendar .booking-calendar-days-loading .booking-calendar-day:not(.booking-calendar-outside) {
    color: transparent;
    background: #f1f2f6;
}
.booking-calendar .booking-calendar-legend { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 0; color: #62657a; font-size: 12px; line-height: 1.6; }
.booking-calendar .booking-calendar-legend-sample { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.booking-calendar .booking-calendar-status { min-height: 40px; margin: 12px 0 0; color: #4e5268; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.booking-calendar .booking-calendar-retry { width: auto; min-height: 44px; padding: 0 12px; margin-top: 4px; color: var(--calendar-accent); background: #f0f2fc; font-size: 14px; }
.booking-calendar .booking-calendar-selected { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #dfe1ec; color: var(--calendar-accent); font-size: 14px; font-weight: 600; line-height: 1.5; }

@keyframes booking-calendar-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .booking-calendar .booking-calendar-loader span { animation: none; border-top-color: #dfe1ec; border-right-color: var(--calendar-accent); }
}

@media (max-width: 420px) {
    .booking-calendar { padding: 10px; }
    .booking-calendar .booking-calendar-days,
    .booking-calendar .booking-calendar-weekdays { gap: 2px; }
}
