/* Availability Calendar */
.avail-cal-wrap {
    position: relative;
    max-width: 480px;
    font-family: inherit;
    user-select: none;
}

.avail-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.avail-cal-month-label {
    font-weight: 600;
    font-size: 1.05rem;
    color: #222;
}

.avail-cal-prev,
.avail-cal-next {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.avail-cal-prev:hover,
.avail-cal-next:hover {
    background: #f0f0f0;
}

.avail-cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 4px;
}

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

.avail-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #333;
}

.avail-cal-day.empty {
    background: transparent;
}

.avail-cal-day.past {
    color: #ccc;
    background: transparent;
    cursor: default;
}

.avail-cal-day.closed {
    color: #aaa;
    background: #f9f9f9;
    cursor: default;
}

.avail-cal-day.available {
    background: #d4f5dc;
    color: #1a6b30;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.avail-cal-day.available:hover {
    background: #b2ecbf;
    transform: scale(1.08);
}

.avail-cal-day.today {
    box-shadow: inset 0 0 0 2px #4caf50;
}

.avail-cal-loading {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    padding: 16px 0;
}

.avail-cal-loading.hidden {
    display: none;
}

.avail-cal-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avail-cal-popup-inner {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px 24px;
    min-width: 260px;
    max-width: 340px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.avail-cal-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.avail-cal-popup-close:hover {
    color: #333;
}

.avail-cal-popup-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: #1a6b30;
}

.avail-cal-popup-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avail-cal-slot {
    background: #edfaf1;
    border: 1px solid #b2ecbf;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.93rem;
    color: #1a6b30;
    font-weight: 500;
}

.avail-cal-error {
    color: #c00;
    font-size: 0.9rem;
}
