.filter__datepicker-box {
    position: relative;
}

.lb-price-datepicker {
    position: absolute;
    z-index: 50;
    top: calc(100% + 10px);
    left: 0;
    width: 680px;
    border: 1px solid #e7e0d0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(39, 35, 24, .16);
    color: #20242d;
    padding: 14px;
}

.lb-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee4cf;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.lb-calendar-nav__btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #2a2f3a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.lb-calendar-nav__btn:hover {
    background: #ffe69a;
}

.lb-calendar-months {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.lb-calendar-month__title {
    color: #151923;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.lb-calendar-weekdays,
.lb-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.lb-calendar-weekdays {
    margin-bottom: 6px;
}

.lb-calendar-weekdays span {
    color: #778093;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.lb-calendar-cell {
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #222834;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
}

.lb-calendar-cell:not(.is-disabled):hover {
    background: #ffe69a;
}

.lb-calendar-cell.is-today {
    background: #ffe69a;
    color: #151923;
}

.lb-calendar-cell.is-selected {
    background: #ffdd55;
    color: #17130a;
    font-weight: 700;
}

.lb-calendar-cell.is-selected.is-today {
    background: #ffdd55;
    color: #17130a;
}

.lb-calendar-cell.is-disabled,
.lb-calendar-cell--empty {
    color: #c8ced9;
    cursor: default;
}

.lb-calendar-cell.is-disabled {
    pointer-events: none;
}

.lb-calendar-day {
    display: block;
    font-size: 12px;
    line-height: 1;
}

.lb-calendar-price {
    display: block;
    color: #8dc641;
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
}

.lb-calendar-cell.is-selected .lb-calendar-price {
    color: #17130a;
}

.lb-calendar-note {
    color: #778093;
    font-size: 11px;
    text-align: center;
    margin-top: 12px;
}

.dark-theme .lb-price-datepicker {
    border-color: transparent;
    background: var(--decor-bg);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .32);
    color: #eef1f8;
}

.dark-theme .lb-calendar-nav {
    border-bottom-color: rgba(255, 255, 255, .08);
}

.dark-theme .lb-calendar-nav__btn {
    color: #f6f7fb;
}

.dark-theme .lb-calendar-nav__btn:hover,
.dark-theme .lb-calendar-cell:not(.is-disabled):hover,
.dark-theme .lb-calendar-cell.is-today {
    background: rgba(229, 185, 63, .14);
}

.dark-theme .lb-calendar-month__title {
    color: #f6f7fb;
}

.dark-theme .lb-calendar-weekdays span,
.dark-theme .lb-calendar-note {
    color: #9ba3b8;
}

.dark-theme .lb-calendar-cell {
    color: #eef1f8;
}

.dark-theme .lb-calendar-cell.is-disabled,
.dark-theme .lb-calendar-cell--empty {
    color: rgba(238, 241, 248, .24);
}

.dark-theme .lb-calendar-price {
    color: #39c36a;
}

.dark-theme .lb-price-datepicker .lb-calendar-cell.is-selected,
.dark-theme .lb-price-datepicker .lb-calendar-cell.is-selected.is-today,
.dark-theme .lb-price-datepicker .lb-calendar-cell.is-selected .lb-calendar-day,
.dark-theme .lb-price-datepicker .lb-calendar-cell.is-selected .lb-calendar-price {
    color: #17130a !important;
}

.dark-theme .lb-price-datepicker .lb-calendar-cell.is-selected.is-today {
    background: #ffdd55 !important;
}

.filter__datepicker-box.is-calendar-loading .filter__datapicker {
    position: relative;
}

.filter__datepicker-box.is-calendar-loading .filter__datapicker::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid rgba(229, 185, 63, .35);
    border-top-color: #e5b93f;
    border-radius: 50%;
    animation: lb-calendar-spin .7s linear infinite;
}

@keyframes lb-calendar-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .lb-price-datepicker {
        left: 50%;
        transform: translateX(-50%);
        width: min(320px, calc(100vw - 32px));
        max-width: none;
    }

    .lb-calendar-months {
        grid-template-columns: 1fr;
    }
}
