/*
Theme Name: Fitconnect
Theme URI: https://fitconnect.lt
Author: Vytautas Adiklis
Author URI: https://admark.lt
Version: 0.5
Text Domain: fitconnect
*/

.date-picker {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    font-family: Arial, sans-serif;
    position: relative;
}

.month {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
    padding: 5px 0;
}

.dates-container {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    padding: 0 30px; /* Add some padding to ensure the arrows don’t overlap */
}

.dates-container::-webkit-scrollbar {
    display: none;
}

.date {
    min-width: 50px;
    padding: 10px;
    margin: 5px;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
}

.date:hover {
    background-color: #d0d0d0;
}

.selected {
    background-color: #007bff;
    color: #fff;
}

.weekday {
    font-size: 0.8em;
    margin-bottom: 5px;
    color: #888;
}

.arrows {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: calc(100% - 60px); /* Adjust based on padding and arrow size */
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* To ensure arrows are not affected by pointer events when hidden */
}

.arrow {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5em;
    transition: background-color 0.3s;
    pointer-events: auto; /* Ensure arrows are clickable */
}

.arrow.hidden {
    opacity: 0; /* Hide the arrow with opacity */
    pointer-events: none; /* Prevent clicks on hidden arrows */
}

.arrow:hover {
    background-color: #0056b3;
}