.calendar-popup {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 1em 1.5em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    min-width: 300px;
    max-width: 95vw;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1em;
}

.calendar-arrow {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.calendar-arrow:hover {
    opacity: 1;
}

.calendar-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    width: 100%;
}

.calendar-month {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 200px;
    min-width: 200px;
}

.calendar-month h4 {
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 2em);
    gap: 0.4em;
    text-align: center;
    margin-top: 0.5em;
    width: 100%;
    justify-content: center;
}

.calendar-grid div {
    padding: 0.3em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.calendar-grid .past {
    color: #ccc;
    pointer-events: none;
}

.calendar-grid div:hover:not(.past) {
    background-color: #eee;
}

.calendar-grid .weekday {
    font-weight: bold;
    color: #444;
    pointer-events: none;
}

.selected {
    background-color: rgb(235, 0, 0);
    color: white;
}

.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {¨
    
#custom-calendar-popup {
    min-width: 180px;
    left: 20px !important;
    right: 20px !important;
}


}

@media (max-width: 700px) {

}

@media (max-width: 500px) {
    #custom-calendar-popup {
        min-width: 180px;
        padding: 0.5em 0.3em;
        left: 8px !important;
        right: 8px !important;
    }
}
