* {
    box-sizing: border-box;
}

.icalendar {
    background-color: #f7f7f7;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .1);
    margin-bottom: 20px;
    color: #000;
    width: 100%;
    /* Ensure it takes available width */
    /* max-width: 500px; */
    /* Optional: limits max size on desktop */
}

.icalendar__month {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #daa520;
    width: 100%;
    padding: 10px;
    color: #fff;
    text-align: center
}

.icalendar__days,
.icalendar__week-days {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap
}

.icalendar__week-days div {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 1px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-family: "Urbanist", sans-serif;
}

.icalendar__week-days {
    background-color: #daa520;
    padding: 7px 0;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.icalendar__days div,
/* .icalendar__days div, */
.icalendar__week-days div {
    width: 14.28%;
    text-align: center;
    position: relative;
}

.icalendar__days label {
    padding: 20px 5px;
    /* Reduced from 30px to prevent overflow */
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}

.icalendar__days label.chosen_date {
    background-color: #2ecc71;
    box-shadow: 0 0 0 0.3px rgba(255, 255, 255, 0.97);
    color: #FFF;
}

.icalendar__days input {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    visibility: hidden;
}

.icalendar__days label {
    padding: 30px 15px;
    -webkit-transition: .3s;
    transition: .3s;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-family: 'Gopher';
    font-size: 20px;
}

.icalendar__days label:not(.disabled) {
    cursor: pointer;
}

.icalendar__days label.disabled {
    color: #bbb;
}

.icalendar__days .selectable input:checked+label {
    background-color: #daa520;
    color: #fff;
}

.icalendar__days .selectable label:hover {
    background-color: rgba(218, 165, 32, 0.5);
    cursor: pointer;
}

.icalendar__today {
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
    color: white;
}

.icalendar__next-date,
.icalendar__prev-date {
    color: #bbb
}

div.icalendar__next-date:hover,
div.icalendar__prev-date:hover {
    background-color: transparent;
    cursor: text
}

.icalendar__current-date #icalendarMonth {
    margin-bottom: 0;
        padding: 0;
        color: white;
        font-weight: 700;
        text-transform: uppercase;
        font-family: 'Gopher';
        font-size: 6vw;
}

@media (min-width: 768px) {
    .icalendar__current-date #icalendarMonth {
        font-size: 40px;
    }
}

#icalendarDateStr {
    font-size: 13px;
    color: rgba(255, 255, 255, .9);
    text-transform: uppercase;
    display: none;
}

.icalendar__next,
.icalendar__prev {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: rgba(0, 0, 0, .1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 15px;
    line-height: 1;
    -webkit-transition: .3s;
    transition: .3s;
    cursor: pointer
}

.icalendar__next:hover,
.icalendar__prev:hover {
    background-color: rgba(0, 0, 0, .2)
}

.fix-departure-date-span {
    position: relative;
    display: inline-block;
    padding: 6px 16px 6px 6px;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin: 4px;
    border-radius: 4px;
    line-height: 1;
    font-size: 12px;
    letter-spacing: 1px;
}

.fix-departure-date-span .ddt-fix-departure-calendar-date-remove {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px;
    width: 16px;
    height: 16px;
    color: rgba(0, 0, 0, 0.7);
    font-size: 10px;
    text-decoration: none;
    text-align: center;
}

.fix-departure-date-span .ddt-fix-departure-calendar-date-remove:hover {
    color: red;
}

textarea.meta-fix-departure-calendar {
    width: 100%;
}
.ddt-fix-departure-calendar-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Space between calendar and dates */
}
.ddt-fix-departure-calendar-box .ddt-fix-departure-calendar-box__column {
    width: 100%;
    /* Default to full width for mobile */
    max-width: 270px;
    /* Limit size on desktop */
    margin: 0 auto;
}

.ddt-fix-departure-calendar-box .ddt-fix-departure-calendar-box__column+.ddt-fix-departure-calendar-box__column {
flex: 1;
    /* Take up remaining space on desktop */
    min-width: 250px;
    padding: 20px 10px;
}

@media all and (max-width: 540px) {
    .ddt-fix-departure-calendar-box .ddt-fix-departure-calendar-box__column+.ddt-fix-departure-calendar-box__column {
        width: 100%;
        background-color: rgba(0, 0, 0, 0.01);
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* 4. Desktop Adjustments */
@media (min-width: 800px) {
    .ddt-fix-departure-calendar-box {
        flex-wrap: nowrap;
        /* Side-by-side layout */
    }

    .ddt-fix-departure-calendar-box .ddt-fix-departure-calendar-box__column {
        width: 350px;
        /* Set a specific width for the calendar on desktop */
    }
}

/* 5. Touch Improvements for Mobile */
@media (max-width: 480px) {
    .icalendar__days label {
        padding: 15px 2px;
        font-size: 14px;
    }

    .icalendar__next,
    .icalendar__prev {
        width: 40px;
        /* Larger hit area for fingers */
        height: 40px;
    }
        .icalendar__week-days div{
            font-size: 14px;
        }
}