.redeem-days-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px
}

.redeem-days {
    display: flex;
    gap: 0
}

.redeem-day {
    display: inline-flex;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    background: #DB4044;
    color: #fee;
    align-items: center;
    justify-content: center
}

.redeem-day:first-child {
    border-radius: 3px 0 0 3px
}

.redeem-day:last-child {
    border-radius: 0 3px 3px 0
}

.redeem-day.empty {
    background: #eee;
    color: #aaa
}

.redeem-day.today {
    border-top: 2px solid #DB4044;
    border-bottom: 2px solid #DB4044;
    z-index: 1
}

.redeem-availability {
    font-size: 11px;
    color: #DB4044;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer
}

.redeem-availability:hover {
    text-decoration: underline
}

.strip-unavailable {
    opacity: .5;
    pointer-events: none;
    filter: grayscale(100%)
}

.strip-unavailable .strip_info {
    cursor: default
}

.redeem-unavailable-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(200, 0, 0, .85);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 6px 8px
}

.btn-er-red {
    background: #d9534f;
    border: 1px solid #d9534f;
    color: #fff
}

.btn-er-red:hover,
.btn-er-red:focus {
    background: #c9302c;
    border-color: #c9302c;
    color: #fff
}

.btn-er-outline {
    background: #fff;
    border: 1px solid #d9534f;
    color: #d9534f
}

.btn-er-outline:hover,
.btn-er-outline:focus {
    background: #fdf2f2;
    color: #c9302c;
    border-color: #c9302c
}

/* modal header: image + geo */
.redeem-modal-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #fafafa
}

.redeem-modal-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0
}

.redeem-modal-geo {
    flex: 1;
    min-width: 0
}

.redeem-modal-geo strong {
    font-size: 15px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.redeem-modal-geo-sub {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.redeem-modal-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px
}

.redeem-modal-rating-num {
    font-size: 13px;
    font-weight: 700;
    color: #333
}

/* calendar nav */
.redeem-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px
}

.redeem-cal-month {
    font-weight: 700;
    font-size: 15px
}

.redeem-cal-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 10px;
    font-size: 18px;
    cursor: pointer;
    line-height: 1.4
}

.redeem-cal-btn:disabled {
    opacity: .3;
    cursor: default
}

/* calendar grid: 7 columns */
.redeem-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px
}

.redeem-cal-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    padding: 4px 0
}

.redeem-cal-cell {
    text-align: center;
    padding: 6px 2px;
    font-size: 13px;
    border-radius: 4px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center
}

.redeem-cal-empty {
    background: none
}

.redeem-cal-past {
    color: #ccc;
    background: #f9f9f9
}

.redeem-cal-avail {
    background: #d4edda;
    color: #155724;
    font-weight: 600
}

.redeem-cal-avail.redeem-cal-today {
    outline: 2px solid #28a745;
    outline-offset: -2px
}

.redeem-cal-unavail {
    background: #f5f5f5;
    color: #bbb
}

.redeem-cal-today {
    outline: 2px solid #6c757d;
    outline-offset: -2px
}

.rf_redeem_cal_pick {
    cursor: pointer
}

.rf_redeem_cal_pick:hover {
    outline: 2px solid #28a745;
    outline-offset: -2px
}

.redeem-cal-link {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%
}

.redeem-cal-link:hover {
    color: inherit;
    text-decoration: none
}

/* legend */
.redeem-cal-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 12px;
    color: #555;
    margin-top: 10px;
    gap: 4px
}

.redeem-cal-legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px
}

.redeem-cal-legend-dot.redeem-cal-avail {
    background: #d4edda
}

.redeem-cal-legend-dot.redeem-cal-unavail {
    background: #f5f5f5;
    border: 1px solid #ddd
}

.redeem-cal-hint {
    font-size: 12px;
    color: #666;
    background: #f6f6f6;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 10px
}

/* ============================
   NEW RESERVATION FORM
   ============================ */
.reservation_form_new {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px 20px
}

.reservation_form_title {
    text-align: center;
    font-size: 20px;
    margin: 0 0 20px 0;
    color: #333
}

.rf_field {
    margin-bottom: 18px
}

.rf_field_icon {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden
}

.rf_field_icon .rf_select,
.rf_field_icon .rf_input {
    border: none;
    border-radius: 0;
    flex: 1;
    min-width: 0
}

.rf_field_icon .rf_select:focus,
.rf_field_icon .rf_input:focus {
    border: none;
    box-shadow: none
}

.rf_field_icon .rf_icon {
    padding: 0 12px;
    color: #999;
    font-size: 18px;
    pointer-events: none;
    flex-shrink: 0
}

.rf_field_icon:focus-within {
    border-color: #d9534f
}

.rf_select,
.rf_input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none
}

.rf_field_icon .rf_select,
.rf_field_icon .rf_input {
    padding-right: 44px
}

.rf_select:focus,
.rf_input:focus {
    border-color: #d9534f;
    outline: none
}

.rf_select:disabled,
.rf_input:disabled {
    opacity: 0.5;
    cursor: not-allowed
}

/* Time Picker */
.rf_time_container {
    position: relative;
    margin-bottom: 18px
}

.rf_time_trigger {
    cursor: pointer;
    margin-bottom: 0
}

.rf_time_display {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    color: #333
}

.rf_timegrid_popover {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    margin-top: 4px
}

.rf_timegrid_loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    color: #999;
    font-size: 24px
}

.rf_timegrid_message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 20px
}

.rf_timegrid_message a {
    color: #d9534f;
    text-decoration: underline;
    margin-left: 4px
}

.rf_timegrid {
    display: flex;
    align-items: stretch;
    border: none;
    overflow: hidden
}

.rf_timegrid_arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    background: #fff5f5;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 24px;
    color: #d9534f;
    user-select: none;
    flex-shrink: 0;
    margin: 0
}

.rf_timegrid_arrow:hover {
    background: #ffe8e8
}

.rf_timegrid_arrow.disabled {
    opacity: 0.3;
    cursor: default
}

.rf_timegrid_arrow.disabled:hover {
    background: #fff5f5
}

.rf_timegrid_slots {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd
}

.rf_slot {
    padding: 5px 4px;
    text-align: center;
    border: none;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s
}

.rf_slot:hover {
    background: #fef5f5
}

.rf_slot.unavailable {
    color: #ccc;
    background: #f9f9f9;
    cursor: default
}

.rf_slot.unavailable:hover {
    background: #f9f9f9
}

.rf_slot.selected {
    background: #d9534f;
    color: #fff;
    font-weight: 600
}

.rf_timegrid_pages {
    text-align: center;
    margin-top: 8px
}

.rf_timegrid_pages .rf_page_dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 3px;
    cursor: pointer
}

.rf_timegrid_pages .rf_page_dot.active {
    background: #d9534f
}

/* Space & Options */
.rf_space_wrap {
    margin-bottom: 18px
}

.rf_options_wrap {
    margin-bottom: 18px;
    padding: 10px 0 4px 0
}

.rf_options_label {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.rf_label_icon {
    color: #999;
    font-size: 16px
}

.rf_options_label:first-child {
    margin-top: 0
}

.rf_options_wrap label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    margin-bottom: 8px
}

.rf_options_wrap input[type="checkbox"] {
    accent-color: #d9534f
}

.rf_option_info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d9534f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 2px
}

.rf_option_tooltip {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    z-index: 100;
    max-width: 260px;
    opacity: 0;
    transition: opacity .15s
}

.rf_option_tooltip_visible {
    opacity: 1
}

/* Earn eatcoins */
.rf_earn_wrap {
    margin-bottom: 18px
}

.rf_earn_display {
    text-align: center;
    font-size: 13px;
    color: #5a9e5a;
    padding: 10px;
    background: #f8fff8;
    border-radius: 6px
}

.rf_earn_display strong {
    font-weight: 700
}

/* Redeem */
.rf_redeem_wrap {
    margin-bottom: 18px
}

.rf_redeem_note {
    font-size: 13px;
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    background: #e8a63a;
    border-radius: 8px;
    line-height: 1.5;
    font-weight: 700
}

.rf_redeem_note a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600
}

.rf_redeem_buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px
}

.rf_redeem_btn {
    flex: 1;
    padding: 8px 4px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all .15s
}

.rf_redeem_btn:hover {
    border-color: #d9534f
}

.rf_redeem_btn.selected {
    background: #e8a63a;
    border-color: #e8a63a;
    color: #fff
}

.rf_redeem_btn.disabled {
    opacity: .4;
    cursor: default;
    border-color: #eee;
    color: #ccc
}

.rf_redeem_btn.disabled:hover {
    border-color: #eee
}

/* Restaurant name (mobile only) */
.rf_restaurant_name {
    display: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px
}

@media (max-width:768px) {
    .rf_restaurant_name {
        display: block
    }

    .box_booking {
        box-shadow: none !important;
        padding-top: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important
    }

    .modal {
        z-index: 999999 !important
    }

    .modal-backdrop {
        z-index: 999998 !important
    }
}

/* Error */
.rf_error {
    color: #d9534f;
    font-size: 13px;
    text-align: center;
    margin-bottom: 10px
}

/* Submit */
.rf_submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 6px;
    cursor: pointer
}

.rf_footer {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-top: 12px;
    margin-bottom: 0
}

/* Reservation form datepicker override */
#ui-datepicker-div {
    width: 280px !important;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    z-index: 999999 !important
}

@media (max-width:768px) {
    #ui-datepicker-div {
        width: calc(100vw - 24px) !important;
        left: 12px !important;
        right: 12px !important
    }

    #ui-datepicker-div td a,
    #ui-datepicker-div td span {
        min-width: 44px;
        min-height: 44px;
        line-height: 30px;
        box-sizing: border-box
    }
}
