.cnwshotel-date-range-layer {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
}

.cnwshotel-date-range-picker {
    position: fixed;
    z-index: 2147483001;
    width: min(332px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 16px;
    background: #fff;
    color: #111827;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    box-sizing: border-box;
    pointer-events: auto;
}

.cnwshotel-date-range-picker__head,
.cnwshotel-date-range-picker__weekdays,
.cnwshotel-date-range-picker__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.cnwshotel-date-range-picker__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.cnwshotel-date-range-picker__month {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    text-transform: capitalize;
}

.cnwshotel-date-range-picker__nav,
.cnwshotel-date-range-picker__day {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #111827;
    cursor: pointer;
    font: inherit;
}

.cnwshotel-date-range-picker button {
    font-family: inherit !important;
    text-transform: none !important;
}

.cnwshotel-date-range-picker__nav {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 18px;
    line-height: 1;
}

.cnwshotel-date-range-picker__hint {
    display: flex;
    align-items: flex-start;
    min-height: 2.5em;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.cnwshotel-date-range-picker__weekdays,
.cnwshotel-date-range-picker__days {
    width: 100%;
    gap: 4px;
}

.cnwshotel-date-range-picker__weekdays {
    margin-bottom: 5px;
}

.cnwshotel-date-range-picker__weekdays span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.cnwshotel-date-range-picker__day {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px;
    box-sizing: border-box !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1 !important;
    text-align: center !important;
    box-shadow: none !important;
}

.cnwshotel-date-range-picker__day:hover:not(:disabled),
.cnwshotel-date-range-picker__nav:hover {
    border-color: #111827;
}

.cnwshotel-date-range-picker__day.is-muted {
    color: #94a3b8;
}

.cnwshotel-date-range-picker__day.is-disabled {
    cursor: not-allowed;
    opacity: 0.32;
}

.cnwshotel-date-range-picker__day.is-checkin,
.cnwshotel-date-range-picker__day.is-checkout {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.cnwshotel-date-range-picker__day.is-in-range {
    border-color: rgba(15, 23, 42, 0.18);
    background: #f1f5f9;
}

@media (max-width: 520px) {
    .cnwshotel-date-range-picker {
        left: 12px !important;
        right: 12px;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
    }
}

.cnwshotel-booking-modal--date-range-host {
    overflow: visible;
}

.cnwshotel-date-range-layer--modal {
    position: fixed;
    inset: 0;
    z-index: 2147483002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
}

.cnwshotel-date-range-layer--modal .cnwshotel-date-range-picker {
    position: relative;
    z-index: 2147483003;
    width: min(392px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.cnwshotel-date-range-picker--modal {
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

@media (max-width: 520px) {
    .cnwshotel-date-range-layer--modal {
        align-items: flex-end;
        padding: 10px;
    }

    .cnwshotel-date-range-layer--modal .cnwshotel-date-range-picker {
        left: auto !important;
        right: auto;
        top: auto !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: min(74vh, 520px);
        border-radius: 18px 18px 14px 14px;
    }
}

.cnwshotel-date-range-picker__day.has-price {
    flex-direction: column !important;
    gap: 2px;
    height: 52px !important;
    min-height: 52px !important;
    padding: 3px 1px !important;
}

.cnwshotel-date-range-picker__day-number {
    display: block;
    line-height: 1;
}

.cnwshotel-date-range-picker__day-price {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    color: #64748b;
    font-size: 8.8px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
}

.cnwshotel-date-range-picker__day.is-checkin .cnwshotel-date-range-picker__day-price,
.cnwshotel-date-range-picker__day.is-checkout .cnwshotel-date-range-picker__day-price {
    color: rgba(255, 255, 255, 0.82);
}

.cnwshotel-date-range-picker__day.is-in-range .cnwshotel-date-range-picker__day-price {
    color: #475569;
}

.cnwshotel-date-range-picker__day.is-availability-good:not(.is-checkin):not(.is-checkout):not(.is-in-range) {
    border-color: #86efac;
    background: #dcfce7;
    color: #166534;
}

.cnwshotel-date-range-picker__day.is-availability-limited:not(.is-checkin):not(.is-checkout):not(.is-in-range) {
    border-color: #fbbf24;
    background: #fef3c7;
    color: #92400e;
}

.cnwshotel-date-range-picker__day.is-availability-full:not(.is-checkin):not(.is-checkout):not(.is-in-range) {
    border-color: #f87171;
    background: #fee2e2;
    color: #991b1b;
}

.cnwshotel-date-range-picker__day.has-availability:not(.is-checkin):not(.is-checkout) .cnwshotel-date-range-picker__day-price {
    color: currentColor;
    opacity: 0.78;
}

.cnwshotel-date-range-picker__availability-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    color: #475569;
    font-size: 10px;
    font-weight: 750;
}

.cnwshotel-date-range-picker__availability-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cnwshotel-date-range-picker__availability-legend i {
    width: 10px;
    height: 10px;
    border: 1px solid transparent;
    border-radius: 3px;
}

.cnwshotel-date-range-picker__availability-legend i.is-good {
    border-color: #86efac;
    background: #dcfce7;
}

.cnwshotel-date-range-picker__availability-legend i.is-limited {
    border-color: #fbbf24;
    background: #fef3c7;
}

.cnwshotel-date-range-picker__availability-legend i.is-full {
    border-color: #f87171;
    background: #fee2e2;
}

@media (max-width: 520px) {
    .cnwshotel-date-range-picker__day,
    .cnwshotel-date-range-picker__day.has-price {
        height: 52px !important;
        min-height: 52px !important;
    }

    .cnwshotel-date-range-picker__day-price {
        font-size: 8.2px;
        letter-spacing: -0.055em;
    }
}
