.custom-stay-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.custom-stay-grid label{display:grid;gap:6px;font-size:14px}
.custom-stay-grid input,.custom-stay-grid select{width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid #bdcec2;border-radius:5px;font:inherit;background:white}
#customStayFields[hidden]{display:none}
#customStayQuote{padding:14px 0;border-top:1px solid #d7ddd8;font-size:14px}
#customStayQuote p{margin:8px 0}
.custom-limit-notice{color:#b42318;background:#fff3f2;border-left:3px solid #c43c32;padding:12px 14px;font-size:14px;line-height:1.6;margin:16px 0;font-weight:600}
.custom-limit-notice[hidden]{display:none}
#customStayQuote .custom-duration{display:flex;justify-content:space-between;gap:12px;margin-bottom:16px;align-items:baseline}
.custom-duration>span{color:#63736a}
.custom-price-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:9px 0;align-items:baseline;line-height:1.5}
.custom-price-row>strong{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.custom-price-row:not(.custom-price-total):not(.custom-price-deposit)>strong{font-weight:500}
.custom-price-total{border-top:1px solid #d7ddd8;margin-top:8px;padding-top:16px;font-size:16px;font-weight:600}
.custom-price-total>strong{color:#176240}
.custom-price-deposit{color:#176240}
#displayCheckIn,#displayCheckOut{display:flex;flex-direction:column;gap:5px;text-align:right;min-width:0}
#displayCheckIn small,#displayCheckOut small{font-size:14px;color:#647369}
#displayCheckIn>span,#displayCheckOut>span{width:auto;text-align:inherit}
@media(max-width:480px){
 .custom-price-row{grid-template-columns:minmax(0,1fr);gap:2px}
 .custom-price-row>strong{text-align:left}
 #customStayQuote .custom-duration{flex-direction:column;gap:4px}
 #displayCheckIn,#displayCheckOut{text-align:left;align-items:flex-start}
}
#customStayQuote .custom-retry{display:block;margin-top:12px;padding:10px 14px;min-height:44px;border:1px solid #a92323;border-radius:5px;background:#fff;color:#a92323;font:inherit;font-weight:600;cursor:pointer}
#customStayQuote .custom-retry:hover{background:#ffe4e4}
#customStayQuote .custom-retry:focus-visible{outline:2px solid #a92323;outline-offset:3px}
.custom-date-field{display:grid;gap:6px;font-size:14px}
.custom-date-field button{width:100%;min-height:44px;padding:10px;border:1px solid #bdcec2;border-radius:5px;background:#fff;color:#214b3a;font:inherit;text-align:left}
.custom-date-field button[aria-pressed="true"]{border:2px solid #175b40;background:#edf6f0}
#customStayQuote.is-unavailable{color:#a92323;background:#fff1f1;border:1px solid #d78b8b;border-radius:5px;padding:14px}
#calendarGrid.custom-calendar .calendar-day[role="button"]{cursor:pointer;pointer-events:auto}
#calendarGrid.custom-calendar .calendar-day.custom-range{background:#e3f0e7;border-color:#52916a;color:#174d32}
#calendarGrid.custom-calendar .calendar-day.custom-range-end{box-shadow:inset 0 0 0 2px #286a45}
#calendarGrid.custom-calendar .calendar-day.custom-range-invalid{background:#ffe7e7 !important;border-color:#c64d4d !important;color:#a92323 !important}
#calendarGrid.custom-calendar .calendar-day.custom-range-invalid.custom-range-end{box-shadow:inset 0 0 0 2px #b52b2b}
#calendarGrid { container-type: inline-size; }
#calendarGrid .calendar-day {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    justify-items: center;
    align-self: start;
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 3px 2px;
    box-sizing: border-box;
    letter-spacing: 0;
    text-decoration: none;
}
#calendarGrid .calendar-day-number {
    grid-row: 2;
    align-self: center;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
#calendarGrid .calendar-day.admin-blocked-day {
    background: #edf0f2 !important;
    border: 1px solid #b9c3ca !important;
    color: #475760 !important;
}
#calendarGrid .calendar-day.admin-blocked-day::before {
    content: none !important;
}
#calendarGrid .calendar-day.admin-blocked-day::after {
    content: none;
}
#calendarGrid .calendar-day.calendar-temporary-hold {
    background: #e6e6e6;
    border-color: #c5c5c5;
    color: #515151;
}
#calendarGrid .calendar-availability-label {
    grid-row: 3;
    align-self: start;
    max-width: 100%;
    margin-top: 4px;
    text-align: center;
    font-size: clamp(8px, 1.65cqw, 11px);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0;
}
#calendarGrid .calendar-status-line { display: block; white-space: nowrap; }
#calendarGrid .calendar-status-compact { display: none; }
#calendarGrid .calendar-day.discounted-deal {
    background: #fff8d6;
    border-color: #dfcf89;
    color: #756019;
}
#calendarGrid .calendar-day.discounted-deal::before,
#calendarGrid .calendar-day.discounted-deal::after {
    content: none !important;
    display: none !important;
}
#calendarGrid .calendar-discount-badge {
    grid-row: 3;
    align-self: start;
    margin-top: 4px;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    overflow: visible;
    text-overflow: clip;
}
#calendarGrid .calendar-day.selected.discounted-deal {
    background: #fff0ad;
    border-color: #987d22;
    box-shadow: inset 0 0 0 1px #987d22;
}
.booking-wrapper .stay-discount-price {
    flex-wrap: wrap;
    justify-content: flex-end;
    white-space: normal;
}
.booking-wrapper .legend-item .box.discounted { background: #fff8d6; border-color: #dfcf89; }
.voucher-eligible-label { color: #0f6b43; font-size: 12px; font-weight: 700; margin-top: 4px; }
@media (max-width: 600px) {
    #calendarGrid { gap: 4px; }
    .booking-wrapper .stay-discount-price { flex-direction: column; gap: 2px; }
}
@container (max-width: 420px) {
    #calendarGrid .calendar-day { grid-template-rows: minmax(12px, 1fr) auto; padding: 2px 1px; }
    #calendarGrid .calendar-day-number { grid-row: 1; font-size: 12px; line-height: 1; }
    #calendarGrid .calendar-day:not(.calendar-has-status):not(.discounted-deal) .calendar-day-number { grid-row: 1 / -1; }
    #calendarGrid .calendar-availability-label,
    #calendarGrid .calendar-discount-badge { grid-row: 2; margin: 0; font-size: 8px; line-height: 1; }
    #calendarGrid .calendar-status-full { display: none; }
    #calendarGrid .calendar-status-compact { display: block; }
}
