.rlg-booking-widget {
    --rlg-border: #d9d9d9;
    --rlg-text: #2f2f2f;
    --rlg-muted: #787878;
    --rlg-dark: #333333;
    --rlg-accent: #004BA1;
    --rlg-soft: #eef4f7;
    --rlg-soft-1: #dceafa;
    --rlg-soft-2: #dceafa;
    --rlg-fs-xs: clamp(11px, 1.1vw, 12px);
    --rlg-fs-sm: clamp(12px, 1.35vw, 14px);
    --rlg-fs-md: clamp(14px, 1.7vw, 16px);
    --rlg-fs-lg: clamp(18px, 2.4vw, 24px);
    --rlg-fs-xl: clamp(24px, 3vw, 32px);
    background: #fff;
    border: 1px solid var(--rlg-border);
    color: var(--rlg-text);
    max-width: 100%;
    margin: 0 auto 24px;
    font-family: Arial, sans-serif;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.rlg-booking-widget * {
    box-sizing: border-box;
}

.rlg-booking-widget__topbar {
    background: var(--rlg-dark);
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: var(--rlg-fs-lg);
    padding: 18px 14px 16px;
}

.rlg-booking-widget__summary {
    text-align: center;
    padding: 16px 14px 14px;
    border-bottom: 1px solid var(--rlg-border);
}

.rlg-booking-widget__title {
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.3;
    font-weight: 400;
    margin: 0 0 6px;
}

.rlg-booking-widget__price {
    color: var(--rlg-accent);
    font-size: var(--rlg-fs-xl);
    font-weight: 700;
    line-height: 1.1;
}

.rlg-booking-widget__caption {
    text-align: center;
    font-size: var(--rlg-fs-xs);
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #5b5b5b;
    padding: 13px 14px;
    border-bottom: 1px solid var(--rlg-border);
}

.rlg-booking-widget__section {
    padding: 16px 14px 0;
}

.rlg-booking-widget__section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: var(--rlg-fs-md);
    font-weight: 700;
}

.rlg-booking-widget__badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rlg-accent);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
}

.rlg-booking-widget__calendar {
    border: 1px solid var(--rlg-border);
    background: #fff;
    overflow: hidden;
}

.rlg-booking-widget__calendar-nav {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    border-bottom: 1px solid var(--rlg-border);
}

.rlg-booking-widget__calendar-btn {
    border: 0;
    background: transparent;
    font-size: 20px;
    color: #4b4b4b;
    height: 40px;
    cursor: pointer;
}

.rlg-booking-widget__calendar-btn[disabled] {
    opacity: .35;
    cursor: default;
}

.rlg-booking-widget__calendar-label {
    text-align: center;
    font-size: var(--rlg-fs-sm);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #505050;
}

.rlg-booking-widget__weekdays,
.rlg-booking-widget__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.rlg-booking-widget__weekday {
    text-align: center;
    padding: 8px 0 7px;
    font-size: var(--rlg-fs-xs);
    color: #004BA1;
    font-weight: 700;
    border-right: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
}

.rlg-booking-widget__weekdays > :nth-child(7n) {
    border-right: 0;
}

.rlg-booking-widget__day,
.rlg-booking-widget__blank {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--rlg-fs-sm);
    border-right: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
}

.rlg-booking-widget__days > :nth-child(7n) {
    border-right: 0;
}

.rlg-booking-widget__blank {
    color: transparent;
}

.rlg-booking-widget__day {
    background: #fff;
    color: #2f2f2f;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.rlg-booking-widget__day:hover:not([disabled]) {
    filter: brightness(.98);
}

.rlg-booking-widget__day[disabled] {
    color: #999;
    background: #fff;
    text-decoration: line-through;
    cursor: not-allowed;
}

.rlg-booking-widget__day.is-available-1 {
    background: var(--rlg-soft-1);
}

.rlg-booking-widget__day.is-selected {
    background: #004BA1;
    color: #fff;
    font-weight: 700;
}

.rlg-booking-widget__day.is-in-range:not(.is-selected):not(.is-range-end) {
    background: #004ba18c;
    color: #2f2f2f;
}

.rlg-booking-widget__day.is-range-end {
    background: #8db9ea;
    color: #2f2f2f;
    font-weight: 700;
}

.rlg-booking-widget__legend {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 2px 0;
    font-size: var(--rlg-fs-xs);
    color: #5e5e5e;
}

.rlg-booking-widget__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rlg-booking-widget__legend-box {
    width: 11px;
    height: 11px;
    border: 1px solid #d0d0d0;
    background: var(--rlg-soft-1);
}

.rlg-booking-widget__legend-box--off {
    background: #fff;
}

.rlg-booking-widget__helper {
    font-size: var(--rlg-fs-xs);
    color: #9c9c9c;
}

.rlg-booking-widget__pax-label {
    font-size: var(--rlg-fs-xs);
    font-weight: 700;
    margin-bottom: 10px;
}

.rlg-booking-widget__pax-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.rlg-booking-widget__pax-name {
    font-size: var(--rlg-fs-sm);
    font-weight: 700;
}

.rlg-booking-widget__stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rlg-booking-widget__stepper-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #717171;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.rlg-booking-widget__stepper-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.rlg-booking-widget__stepper-value {
    min-width: 14px;
    text-align: center;
    font-size: var(--rlg-fs-md);
    font-weight: 700;
}

.rlg-booking-widget__totals {
    border: 1px solid var(--rlg-border);
    padding: 12px 10px;
    margin-bottom: 18px;
    background: #fff;
}

.rlg-booking-widget__total-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: var(--rlg-fs-sm);
}

.rlg-booking-widget__total-row + .rlg-booking-widget__total-row {
    margin-top: 8px;
}

.rlg-booking-widget__total-row strong {
    color: #000;
}

.rlg-booking-widget__actions {
    padding: 0 14px 18px;
    text-align: center;
}

.rlg-booking-widget__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    background: var(--rlg-accent);
    color: #fff;
    font-weight: 700;
    font-size: var(--rlg-fs-md);
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.rlg-booking-widget__button:hover {
    opacity: .92;
    transform: translateY(-1px);
    color: #fff;
}

.rlg-booking-widget__button:disabled {
    background: #b7b7b7;
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 991px) {
    .rlg-booking-widget {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .rlg-booking-widget__summary {
        padding: 14px 12px 12px;
    }

    .rlg-booking-widget__title {
        font-size: 18px;
    }

    .rlg-booking-widget__price {
        font-size: 28px;
    }

    .rlg-booking-widget__section {
        padding: 14px 10px 0;
    }

    .rlg-booking-widget__calendar-nav {
        grid-template-columns: 32px 1fr 32px;
    }

    .rlg-booking-widget__weekday {
        padding: 9px 0 8px;
    }

    .rlg-booking-widget__day,
    .rlg-booking-widget__blank {
        min-height: 40px;
        font-size: 13px;
    }

    .rlg-booking-widget__legend {
        justify-content: flex-start;
        gap: 8px 14px;
    }

    .rlg-booking-widget__pax-controls {
        gap: 12px;
    }

    .rlg-booking-widget__total-row {
        font-size: 13px;
    }

    .rlg-booking-widget__actions {
        padding: 0 10px 16px;
    }
}
