.ai-chat-box {
    position: relative;
}

.ai-calendar-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 34px;
    background: rgba(255, 255, 255, 0.76);
}

.ai-calendar-panel {
    position: relative;
    width: 100%;
    max-width: 430px;
    max-height: 100%;
    padding: 14px 42px 18px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-calendar-top {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 34px 10px;
}

.ai-calendar-title {
    color: #444444;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-transform: capitalize;
}

.ai-calendar-close {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid #d09500;
    border-radius: 4px;
    background: #ffffff;
    color: #555555;
    font-size: 22px;
    font-weight: 700;
    line-height: 24px;
    cursor: pointer;
}

.ai-calendar-close:hover,
.ai-calendar-close:focus,
.ai-calendar-side-nav:hover:not(:disabled),
.ai-calendar-side-nav:focus:not(:disabled) {
    background: #f8b308;
    color: #ffffff;
    outline: none;
}

.ai-calendar-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.ai-calendar-viewport::-webkit-scrollbar {
    height: 7px;
}

.ai-calendar-viewport::-webkit-scrollbar-track {
    background: #eeeeee;
}

.ai-calendar-viewport::-webkit-scrollbar-thumb {
    background: #b5b5b5;
    border-radius: 7px;
}

.ai-calendar-track {
    display: flex;
}

.ai-calendar-month {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.ai-calendar-weekdays,
.ai-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.ai-calendar-weekdays {
    margin-bottom: 7px;
}

.ai-calendar-weekday {
    color: #777777;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.ai-calendar-empty,
.ai-calendar-day {
    aspect-ratio: 1;
}

.ai-calendar-day {
    width: 100%;
    min-width: 0;
    border: 1px solid #dddddd;
    border-radius: 4px;
    background: #ffffff;
    color: #333333;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.ai-calendar-day:hover:not(:disabled),
.ai-calendar-day:focus:not(:disabled) {
    border-color: #d09500;
    background: #f8b308;
    color: #ffffff;
    outline: none;
}

.ai-calendar-day.is-today:not(:disabled) {
    border-color: #d09500;
    box-shadow: inset 0 0 0 1px #d09500;
}

.ai-calendar-day:disabled {
    cursor: default;
    opacity: 0.34;
}

.ai-calendar-side-nav {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 44px;
    border: 1px solid #d09500;
    border-radius: 4px;
    background: #ffffff;
    color: #555555;
    transform: translateY(-50%);
    cursor: pointer;
}

.ai-calendar-side-nav:disabled {
    cursor: default;
    opacity: 0.35;
}

.ai-calendar-prev {
    left: 8px;
}

.ai-calendar-next {
    right: 8px;
}

body.ai-calendar-is-open {
    overflow: hidden;
}

@media (max-width: 576px) {
    .ai-calendar-overlay {
        position: fixed;
        z-index: 1050;
        padding: 0;
        background: rgba(255, 255, 255, 0.92);
    }

    .ai-calendar-panel {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        padding: 18px 42px 24px;
        border: none;
        border-radius: 0;
        box-shadow: none;
        justify-content: center;
    }

    .ai-calendar-top {
        padding-bottom: 16px;
    }

    .ai-calendar-title {
        font-size: 19px;
    }

    .ai-calendar-close {
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
        font-size: 25px;
        line-height: 28px;
    }

    .ai-calendar-weekdays,
    .ai-calendar-grid {
        gap: 7px;
    }

    .ai-calendar-weekday {
        font-size: 12px;
    }

    .ai-calendar-day {
        font-size: 15px;
    }

    .ai-calendar-side-nav {
        width: 36px;
        height: 52px;
    }

    .ai-calendar-prev {
        left: 8px;
    }

    .ai-calendar-next {
        right: 8px;
    }
}
