.month-selector {
    display: flex;
    justify-content: center;
    column-gap: 20px;
    padding-bottom: 20px;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
}

.month-selector select {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0em;
    color: #111111;
    padding: 5px;
    min-height: unset;
    max-width: none;
    width: 120px;
    outline: none;
    border: 1px solid #111111;
    border-radius: 5px;
    background: none;
    background-color: unset;
    -moz-appearance: button;
    -webkit-appearance: button;
}

.ux-availability-calendar {
    display: flex;
    flex-direction: column;
    column-gap: 20px;
}

.ux-availability-calendar.top {
    position: relative;
    margin-top: 50px;
}

.ux-availability-calendar .room-calendar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    column-gap: 20px;
    max-height: 32px;
    overflow: hidden;
    line-height: 32px;
}

.room-calendar .room-title {
    max-height: 32px;
    overflow: hidden;
}

.room-calendar .room-title div {
    display: inline-block;
    vertical-align: middle;
    font-size: 11px;
    line-height: 14px;
    max-height: 28px;
    overflow: hidden;
}

.ux-calendar-area {
    flex: 0 0 90%;
    font-size: 11px;
}

.ux-calendar-area * {
    height: 30px;
}

.ux-calendar {
    display: flex;
    flex-direction: column;
    width: 100% !important;
}

.ux-calendar>* {
    display: flex;
    flex-direction: row;
    margin: 0em;
    padding: 0em;
    list-style: none;
    overflow: hidden;
}

.ux-calendar .cmd--prev,
.ux-calendar .cmd--next,
.ux-calendar .month,
.ux-calendar .days {
    display: none;
}

.top .ux-calendar .days {
    display: flex;
    position: absolute;
    width: 90%;
    top: -30px;
    text-align: center;
}

.ux-calendar ul.days span {
    color: #1a1a1a;
}

.ux-calendar li {
    border: 0;
    background-color: transparent;
    flex: 1 1 0;
    margin: 0em;
    padding: 0.5px 0;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

.ux-calendar li a {
    display: block;
    width: 100%;
    max-height: 30px;
    text-decoration: none;
}

.reserved--color {
    background-color: #C25050;
    color: #eac1c1;
}

.reserved--dash:after {
    content: '';
    position: absolute;
    width: 25px;
    height: 1px;
    display: block;
    background-color: #1a1a1a !important;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
}

.datepick-only-checkout {
    position: relative;
    pointer-events: none;
}

li:hover .datepick-only-checkout span {
    display: block;
    opacity: 1;
}

li span.tooltip {
    position: absolute;
    z-index: 1;
    width: 100px;
    transform: translate3d(-50%, calc(-100% - 5px), 0);
    -webkit-transform: translate3d(-50%, calc(-100% - 5px), 0);
    left: 50%;
    top: 0;
    background: #333;
    color: #fff;
    padding: 5px;
    height: auto;
    font-size: 13px;
    border-radius: 3px;
    border: 0;
    display: none;
}

li span.tooltip:after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 5px;
    border-color: #333 transparent transparent;
    left: 50%;
    bottom: -10px;
    transform: translate3d(-50%, 0, 0);
    -webkit-transform: translate3d(-50%, 0, 0);
}

.onlycheckout--color {
    background-color: #B5B0B0;
}

.default:not(.datepick-only-checkout):not(.reserved) {
    background-color: #5E8F4C;
    color: #ffffff;
}

.ux-availability-calendar .month-selector {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    height: 30px;
    margin: 0 auto;
    border: none;
    text-align: center;
    font-size: 11px;
}

.booking-legend {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.booking-legend .row>div {
    margin-bottom: 10px;
}

.booking-legend .day {
    display: inline-block;
    height: 30px;
    margin-right: 10px;
    vertical-align: bottom;
    width: 30px;
}

.booking-legend span {
    font-size: 12px;
    line-height: 26px;
    white-space: nowrap;
}

.booking-legend .available {
    background-color: #5E8F4C;
    color: #ffffff;
}

.booking-legend .booked {
    background-color: #C25050 !important;
    color: #eac1c1 !important;
}

.booking-legend .nocheckin {
    background-color: #B5B0B0;
}

.booking-legend .inactive {
    background-color: #FFFFFF;
    color: #111111;
}

/* To prevent click on date */
.ux-calendar li a{
    pointer-events: none;
}

@media (max-width: 1200px) and (min-width: 991px) {
    .ux-availability-calendar .room-calendar {
        flex-direction: column;
        max-height: none;
    }

    .ux-calendar .month,
    .ux-calendar .days {
        width: 100%;
    }

    .room-calendar .room-title {
        width: 100%;
        max-height: none;
        line-height: normal;
    }

    .ux-availability-calendar .room-title div {
        max-height: none;
        line-height: normal;
    }

}

@media (max-width: 991px) {

    .month-selector {
        top: -20px;
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }

    .ux-availability-calendar .room-calendar {
        flex-direction: column;
    }

    .top .room-calendar .room-title {
        margin-top: 20px;
    }

    .room-calendar .room-title {
        margin-top: 40px;
        margin-bottom: 20px;
        width: 100%;
        max-height: none;
    }

    .ux-availability-calendar .room-title div {
        font-size: 22px;
        max-height: none;
        line-height: normal;
    }

    .ux-calendar-area ul {
        height: auto !important;
    }

    .ux-calendar .dates,
    .ux-calendar .days {
        flex-wrap: wrap;
    }

    .top .ux-calendar .days {
        width: 100%;
        height: 30px !important;
        overflow: hidden;
    }

    .ux-calendar-area li {
        width: 14%;
        height: 30px !important;
        flex: unset;
    }

    .ux-availability-calendar .room-calendar {
        max-height: unset;
    }

    .ux-availability-calendar .ux-calendar-area .ux-calendar {
        height: auto !important;
        overflow: unset;
    }
}