/* Ease picker override */
 :host{
    --color-fg-primary: #333;
    --color-bg-inrange:#dadada;
    --color-bg-locked: #c3c4c7;
    --day-width: 42px;
    --day-height: 37px;
 }

/* Core grid layout (fallback if bundle index.css fails to load in shadow root) */
.calendars {
    display: grid;
}
.calendar > .daynames-row,
.calendar > .days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 2px;
}
.calendar > .days-grid > .day {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--day-height);
    min-width: var(--day-width);
}

/* Selectable (available) nights */
.container .day:not(.locked):not(.not-available):not(.avchk-day-pending) {
    color: #000;
    font-weight: 600;
}
.container {
    position: relative;
    transition: transform 150ms ease-out 0ms;
    font-family: inherit;
}

@media (max-width: 768px) {
    .container,
    .calendars,
    .calendar {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* Keep calendar block fixed height so arrows stay put when months have 5 vs 6 rows */
.calendars .calendar > .days-grid {
    min-height: calc(6 * var(--day-height, 37px) + 5 * 2px);
}
@media (max-width: 480px) {
    /* Mobile: day cells use height:auto (larger for touch), need taller min-height */
    .calendars .calendar > .days-grid {
        min-height: calc(6 * 48px + 5 * 2px);
    }
}

/* Availability not loaded yet: dim, no diagonal sold hatch */
.container .day.avchk-day-pending:not(.locked) {
    opacity: 0.45;
    color: #666;
    font-weight: 400;
    pointer-events: none;
    cursor: default;
}

.container.avchk-calendar-pending .day.avchk-day-pending.locked {
    opacity: 0.45;
}

.avchk-calendar-loading {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    width: 100%;
    background: transparent;
    pointer-events: none;
    border-radius: inherit;
    box-sizing: border-box;
}

.avchk-calendar-loading__text {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.03em;
    text-align: center;
}