/* ---- Modal positioning & visibility ----
   Self-contained: doesn't rely on the theme providing centering CSS,
   since that appears to be missing/incomplete on the live site. */
.tour_modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.tour_modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.tour_modal_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.tour_modal_dialog {
    position: relative;
    z-index: 1;
    background: #fff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 40px;
    box-sizing: border-box;
}
.tour_close {
    position: absolute;
    top: 16px;
    right: 16px;
}
body.tour-modal-open { overflow: hidden; }

/* ---- Accent color: change this one variable to match your brand ---- */
.tour_datetime_picker {
    --tb-accent: #8a9a6b;      /* selected date / active states */
    --tb-accent-soft: #e9ede3; /* available-date circle background */
    --tb-border: #e6e6e6;
}

/* ---- Date & time picker layout ---- */
.tour_datetime_picker {
    display: flex;
    border: 1px solid var(--tb-border);
    border-radius: 10px;
    overflow: hidden;
}

.tour_calendar {
    flex: 1 1 340px;
    min-width: 280px;
    padding: 24px 28px;
    border-right: 1px solid var(--tb-border);
}

.tour_picker_heading {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 20px;
    color: #222;
}

.tour_calendar_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.tour_cal_month {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.tour_cal_nav {
    background: #f2f2f2;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: #777;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tour_cal_nav:hover:not(:disabled) {
    background: var(--tb-accent-soft);
    color: #333;
}
.tour_cal_nav:disabled {
    background: transparent;
    opacity: 0.4;
    cursor: not-allowed;
}

.tour_calendar_dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 8px;
}

.tour_calendar_grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 6px;
    justify-items: center;
}

.tour_cal_day {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--tb-accent-soft);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
}
.tour_cal_day:hover:not(:disabled) {
    background: var(--tb-accent);
    color: #fff;
}
.tour_cal_day.is-selected {
    background: var(--tb-accent);
    color: #fff;
    font-weight: 600;
}
.tour_cal_day.is-disabled,
.tour_cal_day:disabled {
    background: transparent;
    color: #d8d8d8;
    cursor: not-allowed;
}
.tour_cal_day.is-blank {
    background: transparent;
    cursor: default;
}

.tour_slots {
    flex: 1 1 260px;
    min-width: 220px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
}

.tour_slots_title {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 18px;
    color: #222;
}

.tour_slots_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

.tour_slot_pill {
    display: block;
    width: 100%;
    border: 1px solid var(--tb-border);
    background: #fff;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    color: #555;
}
.tour_slot_pill:hover {
    border-color: var(--tb-accent);
    color: #333;
}
.tour_slot_pill.is-selected {
    background: var(--tb-accent);
    border-color: var(--tb-accent);
    color: #fff;
}

.tour_slot_pill.is-reserved {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f7f7;
    border-style: dashed;
    color: #b5b5b5;
    cursor: not-allowed;
}
.tour_slot_pill.is-reserved:hover {
    border-color: var(--tb-border); /* no hover affordance since it's not clickable */
    color: #b5b5b5;
}
.tour_slot_reserved_label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #bbb;
}

.tour_slots_full_hint {
    margin-bottom: 12px;
}

.tour_slots_hint,
.tour_slots_loading {
    color: #999;
    font-size: 0.85rem;
}

/* ---- Confirmation screen map ---- */
.tour_confirmed_map {
    width: 100%;
    min-height: 260px;
}
.tour_confirmed_map_iframe {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: 0;
    border-radius: 8px;
    display: block;
}

/* ---- Child rows ---- */
.tour_child_row {
    position: relative;
}
.tour_removechild {
    background: none;
    border: none;
    color: #b32d2e;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    align-self: center;
    padding: 0 6px;
}

/* ---- Form error ---- */
.tour_form_error {
    background: #fdecea;
    color: #b32d2e;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 0.9rem;
}

/* ---- Next button disabled state ---- */
.tour_next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .tour_datetime_picker { flex-direction: column; }
}

/* ---- Payment step icon (Font Awesome, since there's no theme SVG for it) ----
   Sized/colored to approximate the existing SVG step icons; the circular
   background itself comes from the theme's own .tour_step_icon styling. */
.tour_step_icon_fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tour_step_icon_fa i {
    font-size: 1.15rem;
    color: #fff;
}

/* ---- Payment step ---- */
.tour_payment {
    max-width: 480px;
}
.tour_payment_intro {
    color: #666;
    margin-bottom: 20px;
}
.tour_payment_amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}
.tour_payment_amount_label {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #888;
    margin-top: 2px;
}
.tour_card_element {
    border: 1px solid var(--tb-border, #e6e6e6);
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff;
}
.tour_card_errors {
    color: #b32d2e;
    font-size: 0.85rem;
    margin-top: 10px;
    min-height: 1.2em;
}

/* ---- Force correct nav buttons per step (beats theme overrides) ---- */
/* When the payment panel is active: show Back + Next, hide Restart + Close */
.tour_form:has(.tour_panel[data-step-role="payment"].is-active) .tour_restart,
.tour_form:has(.tour_panel[data-step-role="payment"].is-active) .tour_closebtn {
    display: none !important;
}
.tour_form:has(.tour_panel[data-step-role="payment"].is-active) .tour_back,
.tour_form:has(.tour_panel[data-step-role="payment"].is-active) .tour_next {
    display: inline-flex !important;
}

/* When confirmation is active: hide Back + Next, show Restart + Close */
.tour_form:has(.tour_panel[data-step-role="confirmation"].is-active) .tour_back,
.tour_form:has(.tour_panel[data-step-role="confirmation"].is-active) .tour_next {
    display: none !important;
}
.tour_form:has(.tour_panel[data-step-role="confirmation"].is-active) .tour_restart,
.tour_form:has(.tour_panel[data-step-role="confirmation"].is-active) .tour_closebtn {
    display: inline-flex !important;
}
