

.calendar-container {
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.calendar-dates-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.scroll-button {
    background: #ECECEC;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
    display: none; /* По умолчанию скрыты */
}

.scroll-button:hover {
    background: #e0e0e0;
}

.scroll-button.left {
    margin-right: 10px;
}

.scroll-button.right {
    margin-left: 10px;
}

.calendar-dates {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
}

.calendar-dates::-webkit-scrollbar {
    display: none;
}

.date {
    flex: 0 0 auto;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    margin-right: 10px;
    min-width: 60px;
}

.date.selected {
    background: var(--primary);
    color: white;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.time-slot {
    background: var(--primary);
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}

.time-slot:hover {
    background: var(--primary);
}

@media (max-width: 600px) {
    .calendar-container {
        padding: 10px;
    }

    .date {
        min-width: 50px;
        padding: 8px;
        font-size: 14px;
    }

    .time-slot {
        padding: 8px;
        font-size: 14px;
    }

    .scroll-button{
        padding: 3px;
    }

}
