.custom-datepicker {
    width: 672px;
    max-width: 672px;
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    background-color: white;
    border-radius: 10px;
    padding: 25px 35px;
    z-index: 15;
    box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, .15);
    overflow: hidden;
}
/*.custom-datepicker.to-end-date{*/
/*    left: 240px;*/
/*}*/
.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}
.calendar-header .month-year{
    text-transform: capitalize;
    font-size: 16px;
    font-weight: 700;
    height: 30px;
}
/*.calendar-header .month-year select{*/
/*    border: 0;*/
/*    outline: none;*/
/*    cursor: pointer;*/
/*    appearance: none;*/
/*    -webkit-appearance: none;*/
/*    -moz-appearance: none;*/
/*    position: relative;*/
/*    padding: 3px 23px 0 0 !important;*/
/*    background: url(/wp-content/themes/quattro/images/arrow-down.svg) right center no-repeat;*/
/*    font-weight: 700;*/
/*    color: #2D2D2D !important;*/
/*}*/
.calendar-header button{
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0;
}
.calendar-header .prev-month{
    background: url(/wp-content/plugins/online-booking/images/arrow-left-circle.svg) right center no-repeat;
    position: absolute;
    left: 0;
}
.calendar-header .next-month{
    background: url(/wp-content/plugins/online-booking/images/arrow-right-circle.svg) right center no-repeat;
    position: absolute;
    right: 0;
}

.calendar-left,
.calendar-right{
    max-width: 266px;
}

.weekdays{
    font-size: 12px;
    color: #818181;
    text-align: center;
    margin-bottom: 7px;
    font-weight: 500;
}
.weekdays, .days-grid {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: repeat(7, 1fr);
}
.weekdays div{
    min-width: 38px;
    max-width: 38px;
}
.day {
    min-width: 38px;
    max-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    color: #2D2D2D;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    border: 0;
}
.day.today {
    color: var(--pix-orange);
}
.day.past,
.day.disabled {
    cursor: default;
}
.range-start {
    background: var(--pix-orange);
    color: #fff !important;
    border-radius: 4px 0 0 4px;
}
.range-end {
    background: var(--pix-orange);
    color: #fff !important;
    border-radius: 0 4px 4px 0;
}
.in-range, .hover-range {
    background: rgba(255, 72, 0, 0.1);
}
.day.other-month,
.day.past{
    color: #2D2D2D;
    opacity: 0.35;
    pointer-events: none; /* чтобы нельзя было выбрать эти дни */
    background-color: white;
}
.day.other-month{
    opacity: 0;
    visibility: hidden;
}

.calendar-body{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* Контейнер всего селектора времени */
.custom-time-selector {
    margin-top: 30px;
    padding-top: 25px;
    position: relative;
    display: flex;
}
.custom-time-selector:before {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 300%;
    height: 1px;
    background-color: var(--pix-grey-border);
}
.time-sections{
    display: flex;
    flex-wrap: nowrap;
}
.time-section {
    position: relative;
    min-width: 160px;
    max-width: 160px;
}
.time-section:first-child {
    margin-right: 15px;
}
.time-section .section-title {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--pix-text-gray);
}
.time-title{
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2em;
    padding-bottom: 5px;
}
html[lang="fr-FR"] .time-title,
html[lang="da-DK"] .time-title{
    height: 38px;
}
.time-display {
    height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 9px 16px;
    cursor: pointer;
    background-color: #EEF1F4;
    position: relative;
    display: flex;
    align-items: center;
}
.time-display svg {
    margin-right: 11px;
    min-width: 20px;
}
.time-display span {
    font-size: 14px;
    color: #2D2D2D;
    line-height: 1em;
}
.time-display::after {
    content: '';
    height: 20px;
    width: 20px;
    margin-left: auto;
    vertical-align: top;
    background: url(/wp-content/themes/quattro/images/arrow-down.svg) center no-repeat;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}
.time-options {
    display: none;
    position: absolute;
    bottom: 65%;
    left: 0;
    z-index: 10;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 355px;
    overflow-y: auto;
    margin-top: -1px;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.time-section.open .time-options {
    display: block;
}
.time-section.open .time-display::after {
    transform: rotate(180deg);
}
.time-option {
    padding: 4px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.time-option:hover {
    background-color: #f0f0f0;
}
.time-option.selected {
    background-color: var(--pix-grey-bg);
}

.total-days-view-cars{
    flex: 1;
    margin-left: 15px;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
}
.total-days{
    padding-left: 20px;
    margin-right: 5px;
    flex: 1;
}
.total-days .total{
    font-size: 14px;
    line-height: 1em;
}
.total-days .days-count{
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1em;
    padding-bottom: 10px;
}
.total-days .days-count span{
    padding-right: 5px;
}
.total-days-view-cars .view-cars{
    margin-left: auto;
    display: flex;
    height: 44px;
    min-width: 136px;
    max-width: 136px;
    padding: 4px 0;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: var(--pix-text-gray);
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    line-height: 1em;
    color: white;
    cursor: pointer;
}

@media (min-width: 769px) {
    .custom-datepicker .close{
        display: none;
    }
}
@media (max-width: 768px) {
    .custom-datepicker{
        position: fixed;
        top: 0 !important;
        height: 100%;
        width: 100% !important;
        max-width: 100% !important;
        padding: 25px 30px;
        z-index: 102;
        overflow-y: auto;
    }
    .custom-datepicker .close{
        width: 30px;
        height: 30px;
        position: absolute;
        top: 9px;
        right: 13px;
        cursor: pointer;
        z-index: 2;
    }
}
@media (max-width: 650px) {
    .calendar-body{
        display: block;
        max-width: 330px;
        margin: 0 auto;
    }
    .calendar-left, .calendar-right {
        max-width: 100%;
    }
    .calendar-right {
        margin-top: 30px;
    }
    .weekdays, .days-grid{
        display: grid;
    }
    .weekdays div, .day {
        min-width: unset;
        max-width: none;
        font-size: 14px;
        height: 30px;
    }
    .custom-time-selector{
        display: block;
        max-width: 330px;
        margin: 25px auto 0;
    }
    .time-section:first-child{
        margin-right: 10px;
    }
    .total-days-view-cars{
        margin: 23px 0 0 0;
    }
    .total-days{
        flex: 0;
        white-space: nowrap;
        padding-left: 0;
    }
    .total-days .days-count{
        font-size: 18px;
        padding-bottom: 0;
    }
    .total-days-view-cars .view-cars{
        margin-left: 30px;
        max-width: none;
        min-width: auto;
        flex: 1;
    }
}
@media (max-width: 480px) {
    .time-display{
        min-width: 100%;
    }
    .weekdays div, .day {
        min-width: unset;
        max-width: none;
        font-size: 13px;
        height: 28px;
    }
}
@media (max-width: 400px) {

}
@media (max-width: 390px) {
    .custom-datepicker{
        padding: 25px 20px;
    }
}
@media (max-width: 370px) {
    .time-sections{
        display: block;
    }
    .time-section{
        min-width: auto;
        max-width: none;
    }
    .time-section:first-child{
        margin: 0 0 10px;
    }
    .weekdays div, .day {
        font-size: 12px;
        height: 25px;
    }
}
@media (max-width: 360px) {
    .custom-datepicker {
        padding: 25px 15px;
    }
    .calendar-header .month-year{
        text-align: center;
        line-height: 1.2em;
    }
    .calendar-header .month-year span{
        font-size: 15px;
    }
    .calendar-header .month-year select {
        font-size: 15px;
    }
}