/**
 * Sales Igniter Bookings -- skin for the "Separate" and "In Line" date pickers.
 *
 * Everything coloured derives from two custom properties that
 * Model\CalendarStyle prints inline (:root{--sib-accent;--sib-accent-rgb;--sib-radius}):
 * the Calendar Styler's main colour and corner radius. The four styles
 * (.sib-style-airy | card | bold | classic) only change chrome; the rules
 * engine and markup are identical.
 *
 * Scoped under .sib-cal / .sib-fp so nothing leaks into the theme.
 */

:root {
    --sib-accent: #0274be;
    --sib-accent-rgb: 2, 116, 190;
    --sib-radius: 10px;
}

/* tokens on the wrapper AND on the flatpickr root: popup calendars are appended to <body>, outside .sib-cal;
   the pricing card (modern layout) sits above the form, outside .sib-cal too */
.sib-cal, .sib-fp, .sib-pricing {
    --sib-ink: #1f2a37;
    --sib-navy: #10243d;
    --sib-muted: #5b6b7f;
    --sib-soft: #7d8fa3;
    --sib-line: #e4e9f0;
    --sib-card: #ffffff;
    --sib-ground: #f6f8fb;
    --sib-tint: rgba(var(--sib-accent-rgb), 0.12);
    --sib-tint-strong: rgba(var(--sib-accent-rgb), 0.22);
    --sib-ok-bg: #e7f6ec;
    --sib-ok: #166534;
    --sib-warn-bg: #fef3e7;
    --sib-warn: #b8560d;
    --sib-cell: 44px;
    color: var(--sib-ink);
}
.sib-cal {
    margin: 0 0 18px;
    max-width: 100%;
    box-sizing: border-box;
    /* only the wrapper is a container: inline-size containment on .sib-fp would give the
       inline calendar no intrinsic width and collapse it inside its flex mount */
    container-type: inline-size;
    container-name: sibcal;
}
.sib-cal *, .sib-cal *::before, .sib-cal *::after { box-sizing: border-box; }
.sib-cal button { font: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; }

/* ------------------------------------------------------------ hidden inputs */
.sib-hidden-fields { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sib-hidden-fields input { position: absolute; opacity: 0; pointer-events: none; }
.sib-h { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sib-soft); }
.sib-hint, .sib-stage-hint { font-size: 12px; color: var(--sib-soft); line-height: 1.5; margin-top: 10px; }
.sib-stage-hint:empty { display: none; }
.sib-ic { width: 18px; height: 18px; stroke: var(--sib-accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* --------------------------------------------------------------- progress */
.sib-steps { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 6px; margin: 0 0 14px; max-width: 460px; }
.sib-steps:empty { display: none; }
.sib-step { flex: 1 1 0 !important; display: flex; flex-direction: column; gap: 5px; cursor: default; min-width: 0; width: auto !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
.sib-step.is-reachable { cursor: pointer; }
.sib-step-bar { height: 4px; border-radius: 2px; background: var(--sib-line); }
.sib-step.is-done .sib-step-bar, .sib-step.is-on .sib-step-bar { background: var(--sib-accent); }
.sib-step.is-on .sib-step-bar { box-shadow: 0 0 0 2px var(--sib-tint-strong); }
.sib-step-t { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a3b1c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sib-step.is-done .sib-step-t, .sib-step.is-on .sib-step-t { color: var(--sib-navy); }
.sib-step-v { font-size: 12px; color: var(--sib-muted); min-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sib-step.is-done .sib-step-v { color: var(--sib-accent); font-weight: 700; }
.sib-step.is-done.is-reachable:hover .sib-step-v, .sib-step.is-done.is-reachable:focus .sib-step-v { text-decoration: underline; text-underline-offset: 2px; }
.sib-step.is-reachable:focus { outline: none; }
.sib-step.is-reachable:focus .sib-step-bar { box-shadow: 0 0 0 2px var(--sib-tint-strong); }

/* ----------------------------------------------------- separate: fields */
.sib-fields { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 0 0 8px; }
.sib-field-group { flex: 1 1 220px; min-width: 0; position: relative; }
.sib-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sib-soft); margin: 0 0 6px; }
.sib-cal .sibooking-datecontainer { display: flex; gap: 8px; align-items: center; width: 100%; }
.sib-cal .sibooking-datecontainer .flatpickr-input[type="hidden"] { display: none; }
.sib-cal input.sib-input, .sib-cal .sibooking-datecontainer input.form-control {
    height: 46px; padding: 0 14px; border: 1px solid #d5dce5; border-radius: var(--sib-radius); background: var(--sib-card);
    font-size: 15px; color: var(--sib-navy); font-weight: 600; width: 100%; min-width: 0; cursor: pointer; box-shadow: none; margin: 0;
}
.sib-cal .sibooking-datecontainer .form-control { flex: 1 1 60%; }
.sib-cal input.sib-time-field { flex: 0 1 38%; }
.sib-cal input.sib-input:focus, .sib-cal .sibooking-datecontainer input.form-control:focus, .sib-cal input.sib-input.active { outline: none; border-color: var(--sib-accent); box-shadow: 0 0 0 3px var(--sib-tint); }
.sib-cal input.sib-input::placeholder { color: #a3b1c2; font-weight: 400; }
.sib-cal .sib-fixedlength { margin-bottom: 12px; gap: 10px; }

/* -------------------------------------------------------------- stage */
.sib-stage { position: relative; }
.sib-pane { background: var(--sib-card); border: 1px solid var(--sib-line); border-radius: calc(var(--sib-radius) + 4px); padding: 16px; box-shadow: 0 12px 32px rgba(16, 36, 61, .08); }
.sib-pane-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; min-height: 16px; }
.sib-pane-head:empty { display: none; }
.sib-hours { font-size: 12px; color: var(--sib-muted); }
.sib-cal-mount { display: flex; justify-content: center; }
.sib-placeholder { padding: 28px 12px; text-align: center; color: var(--sib-soft); font-size: 14px; border: 1px dashed var(--sib-line); border-radius: var(--sib-radius); }

/* inline: one pane visible at a time on narrow screens; the time pane sits beside the calendar when wide */
.sib-cal--inline .sib-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 460px; }
.sib-cal--inline .sib-summary { max-width: 460px; }
.sib-pane-ctx { font-size: 12px; color: var(--sib-muted); }
.sib-cal--inline .sib-pane { display: none; }
.sib-cal--inline .sib-stage[data-active="date"] .sib-pane--date,
.sib-cal--inline .sib-stage[data-active="done"] .sib-pane--date,
.sib-cal--inline .sib-stage[data-active="time"] .sib-pane--time,
.sib-cal--inline .sib-stage[data-active="period"] .sib-pane--date,
.sib-cal--inline .sib-stage[data-active="period"] .sib-pane--period { display: block; }
@container sibcal (min-width: 640px) {
    .sib-cal--inline.has-time .sib-stage { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; max-width: 760px; }
    .sib-cal--inline.has-time .sib-steps, .sib-cal--inline.has-time .sib-summary { max-width: 760px; }
    .sib-cal--inline.has-time .sib-pane--date, .sib-cal--inline.has-time .sib-pane--time { display: block; }
    .sib-cal--inline.has-time .sib-stage[data-active="period"] .sib-pane--time { display: none; }
}

/* separate: the time pane is a popover under the time field */
.sib-cal--separate { position: relative; }
.sib-cal--separate .sib-stage { position: static; }
.sib-cal--separate .sib-pane--time { display: none; position: absolute; z-index: 9999; width: min(392px, 100%); }
.sib-cal--separate .sib-pane--time.is-open { display: block; }
.sib-cal--separate .sib-stage { min-height: 0; }
.sib-cal--separate .sib-pane--period { margin-top: 10px; }

/* ---------------------------------------------------------- flatpickr */
.sib-fp.flatpickr-calendar { font-family: inherit; box-shadow: none; border: 0; width: auto; max-width: 100%; }
.sib-fp.flatpickr-calendar.inline { top: 0; }
.sib-fp.sib-fp--popup.flatpickr-calendar { width: 336px; background: var(--sib-card); border: 1px solid var(--sib-line); border-radius: calc(var(--sib-radius) + 4px); box-shadow: 0 12px 32px rgba(16, 36, 61, .12); padding: 12px; z-index: 99999; font-family: inherit; }
.sib-fp.sib-fp--popup .flatpickr-day { --sib-cell: 40px; }
.sib-fp.sib-fp--popup.flatpickr-calendar::before, .sib-fp.sib-fp--popup.flatpickr-calendar::after { display: none; }
.sib-fp .flatpickr-months { align-items: center; margin-bottom: 6px; }
.sib-fp .flatpickr-months .flatpickr-month { height: 36px; color: var(--sib-navy); }
.sib-fp .flatpickr-current-month { font-size: 15px; font-weight: 700; padding: 9px 0 0; color: var(--sib-navy); white-space: nowrap; width: 70%; left: 15%; display: flex; justify-content: center; gap: 4px; }
.sib-fp .flatpickr-current-month .cur-month, .sib-fp .flatpickr-current-month .cur-year { font-weight: 700; color: var(--sib-navy); }
.sib-fp .flatpickr-current-month .numInputWrapper span { display: none; }
.sib-fp .flatpickr-current-month input.cur-year { pointer-events: none; }
.sib-fp .flatpickr-months .flatpickr-prev-month, .sib-fp .flatpickr-months .flatpickr-next-month { top: 0; height: 34px; width: 34px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--sib-line); background: var(--sib-card); color: var(--sib-navy); fill: var(--sib-navy); }
.sib-fp .flatpickr-months .flatpickr-prev-month:hover svg, .sib-fp .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--sib-accent); }
.sib-fp .flatpickr-months .flatpickr-prev-month svg, .sib-fp .flatpickr-months .flatpickr-next-month svg { width: 13px; height: 13px; }
.sib-fp .flatpickr-weekdays { height: 26px; }
.sib-fp span.flatpickr-weekday { font-size: 10px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--sib-soft); overflow: hidden; }
.sib-fp .flatpickr-innerContainer, .sib-fp .flatpickr-rContainer { display: block; width: 100%; }
.sib-fp .flatpickr-days, .sib-fp .dayContainer { width: 100% !important; min-width: 0 !important; max-width: none !important; }
.sib-fp .dayContainer { gap: 3px 0; }
.sib-fp .flatpickr-day {
    height: var(--sib-cell); line-height: 1; max-width: none; flex-basis: 14.2857%; width: 14.2857%; border-radius: var(--sib-radius); border: 1px solid transparent; color: var(--sib-ink); font-size: 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin: 0; position: relative;
}
.sib-fp .flatpickr-day:hover, .sib-fp .flatpickr-day:focus { background: var(--sib-ground); border-color: var(--sib-ground); }
.sib-fp .flatpickr-day.today { border-color: transparent; }
.sib-fp .flatpickr-day.today::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--sib-accent); }
.sib-fp .flatpickr-day.today:hover { background: var(--sib-ground); color: var(--sib-ink); }
.sib-fp .flatpickr-day.selected, .sib-fp .flatpickr-day.selected:hover, .sib-fp .flatpickr-day.selected:focus,
.sib-fp .flatpickr-day.sib-range-start, .sib-fp .flatpickr-day.sib-range-end { background: var(--sib-accent); border-color: var(--sib-accent); color: #fff; }
.sib-fp .flatpickr-day.selected::after, .sib-fp .flatpickr-day.sib-range-start::after { background: #fff; }
.sib-fp .flatpickr-day.sib-inrange:not(.selected) { background: var(--sib-tint); border-radius: 0; border-color: var(--sib-tint); }
.sib-fp .flatpickr-day.sib-range-start:not(.sib-range-end) { border-radius: var(--sib-radius) 0 0 var(--sib-radius); }
.sib-fp .flatpickr-day.sib-range-end:not(.sib-range-start) { border-radius: 0 var(--sib-radius) var(--sib-radius) 0; }
.sib-fp .flatpickr-day.prevMonthDay, .sib-fp .flatpickr-day.nextMonthDay { color: #c3cbd6; }
.sib-fp .flatpickr-day.flatpickr-disabled, .sib-fp .flatpickr-day.flatpickr-disabled:hover { color: #c3cbd6; background: transparent; border-color: transparent; }
.sib-fp .flatpickr-day.sib-booked.flatpickr-disabled { text-decoration: line-through; }
.sib-fp .flatpickr-day.sib-closed.flatpickr-disabled { background: repeating-linear-gradient(135deg, #eef1f5 0 3px, #fff 3px 7px); color: #a3b1c2; }
.sib-fp .flatpickr-day.sib-closed.sib-inrange { background: repeating-linear-gradient(135deg, rgba(var(--sib-accent-rgb), .18) 0 3px, var(--sib-tint) 3px 7px); }
.sib-fp .flatpickr-day.sib-inrange.flatpickr-disabled.sib-booked { text-decoration: none; }
.sib-price { font-size: 9px; font-weight: 600; color: var(--sib-soft); line-height: 1.2; }
.sib-fp .flatpickr-day.selected .sib-price, .sib-fp .flatpickr-day.sib-range-start .sib-price, .sib-fp .flatpickr-day.sib-range-end .sib-price { color: rgba(255, 255, 255, .85); }
.sib-fp .flatpickr-day.flatpickr-disabled .sib-price { display: none; }
/* the chosen start / end keep their caps on the start calendar even when that day is
   disabled for *starting* (start-only closures, sold-out-for-start days) */
.sib-fp .flatpickr-day.sib-range-start.flatpickr-disabled, .sib-fp .flatpickr-day.sib-range-end.flatpickr-disabled,
.sib-fp .flatpickr-day.sib-range-start.flatpickr-disabled:hover, .sib-fp .flatpickr-day.sib-range-end.flatpickr-disabled:hover { background: var(--sib-accent); border-color: var(--sib-accent); color: #fff; text-decoration: none; }
.sib-fp .flatpickr-day.sib-inrange.flatpickr-disabled:not(.sib-closed) { background: var(--sib-tint); border-color: var(--sib-tint); color: #a3b1c2; }
.sib-left { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 999px; background: var(--sib-ok-bg); color: var(--sib-ok); line-height: 1.3; }
.sib-left.is-low { background: var(--sib-warn-bg); color: var(--sib-warn); }
.sib-fp .flatpickr-day.selected .sib-left, .sib-fp .flatpickr-day.sib-range-start .sib-left, .sib-fp .flatpickr-day.sib-range-end .sib-left { background: rgba(255, 255, 255, .25); color: #fff; }
.sib-fp .flatpickr-day.flatpickr-disabled .sib-left { display: none; }

/* --------------------------------------------------------------- slots */
.sib-slots { display: flex; flex-direction: column; gap: 14px; }
.sib-slot-group { display: flex; flex-direction: column; gap: 8px; }
.sib-slot-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.sib-cal .sib-slot {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; padding: 4px 6px;
    border-radius: var(--sib-radius); border: 1px solid #d5dce5; background: var(--sib-card); font-size: 13px; font-weight: 600; color: var(--sib-ink); cursor: pointer; line-height: 1.2; margin: 0; white-space: nowrap;
}
.sib-cal .sib-slot:hover { border-color: var(--sib-accent); }
.sib-cal .sib-slot.is-sel, .sib-cal .sib-slot.is-sel:hover { background: var(--sib-accent); border-color: var(--sib-accent); color: #fff; }
.sib-cal .sib-slot.is-suggested { border-color: var(--sib-accent); box-shadow: inset 0 0 0 1px var(--sib-accent); }
.sib-cal .sib-slot.is-off, .sib-cal .sib-slot.is-off:hover { color: #c3cbd6; border-style: dashed; border-color: #e4e9f0; background: #fafbfc; font-weight: 400; cursor: not-allowed; }
.sib-cal .sib-slot.is-before-pickup { border-style: solid; background: var(--sib-ground); color: #a3b1c2; }
.sib-slot-sub { font-size: 9px; font-weight: 400; color: var(--sib-soft); letter-spacing: .02em; }
.sib-cal .sib-slot.is-sel .sib-slot-sub { color: rgba(255, 255, 255, .85); }

/* --------------------------------------------------------- fixed dates */
.sib-cal .sib-pane--period .sib-pane-head { margin-bottom: 10px; }
.sib-cal .sib-period-empty { margin: 0; padding: 14px; border: 1px dashed #d5dce5; border-radius: var(--sib-radius); color: var(--sib-muted); font-size: 13px; text-align: center; }
.sib-periods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sib-cal .sib-period {
    position: relative;
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 26px 10px 12px; margin: 0;
    border-radius: var(--sib-radius); border: 1px solid #d5dce5; background: var(--sib-card); color: var(--sib-ink);
    font: inherit; line-height: 1.25; text-align: left; cursor: pointer; width: 100%;
}
.sib-cal .sib-period:hover, .sib-cal .sib-period:focus-visible { border-color: var(--sib-accent); outline: none; }
.sib-cal .sib-period.sibooking-fixeddate-chosen, .sib-cal .sib-period.sibooking-fixeddate-chosen:hover { background: var(--sib-accent); border-color: var(--sib-accent); color: #fff; }
.sib-period-when { font-size: 14px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.sib-period-t { white-space: nowrap; }
.sib-period-arrow { color: var(--sib-soft); font-weight: 400; }
.sib-cal .sib-period.sibooking-fixeddate-chosen::after { content: "\2713"; position: absolute; top: 8px; right: 10px; font-size: 12px; line-height: 1; }
.sib-legend-bar { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--sib-accent); vertical-align: middle; margin-right: 6px; }
.sib-cal .sib-period.sibooking-fixeddate-chosen .sib-period-arrow { color: rgba(255, 255, 255, .8); }
.sib-period-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; color: var(--sib-muted); }
.sib-period-dur { font-weight: 600; }
.sib-period-until::before { content: "·"; margin-right: 6px; }
.sib-cal .sib-period.sibooking-fixeddate-chosen .sib-period-meta { color: rgba(255, 255, 255, .85); }
.sib-cal .sib-period.sibooking-fixeddate-chosen .sib-left { background: rgba(255, 255, 255, .25); color: #fff; }
/* days that have a departure carry a small accent bar under the number */
.sib-fp .flatpickr-day.sib-has-period:not(.selected)::before { content: ""; position: absolute; bottom: 5px; width: 14px; height: 3px; border-radius: 2px; background: var(--sib-accent); opacity: .8; }
.sib-fp .flatpickr-day.sib-has-period { font-weight: 700; }
.sib-cal--separate .sib-periods { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ------------------------------------------------------------- summary */
.sib-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; padding: 14px 16px; border-radius: calc(var(--sib-radius) + 2px); background: var(--sib-ground); }
.sib-summary-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sib-summary-text b { font-size: 18px; color: var(--sib-navy); }
.sib-summary-text small { font-size: 13px; color: var(--sib-muted); }
.sib-summary-muted { font-size: 14px; color: var(--sib-soft); }
.sib-summary .sibooking-before-button-container { flex: 1 1 100%; min-height: 0; height: auto; }
.sib-summary .sibooking-before-button-container:empty { display: none; }
.sib-cal .sib-reset { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--sib-line); background: var(--sib-card); color: var(--sib-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.sib-cal .sib-reset:hover { border-color: var(--sib-accent); color: var(--sib-accent); }
.sib-cal .sib-reset .sib-ic { width: 15px; height: 15px; stroke: currentColor; }
.sib-style-bold .sib-summary .sib-reset { background: transparent; color: #b9c6d6; border-color: rgba(255, 255, 255, .25); }
.sib-cal .sib-btn { height: 46px; padding: 0 22px; border-radius: var(--sib-radius); background: var(--sib-accent); color: #fff; font-weight: 700; border: 0; cursor: pointer; }

/* ------------------------------------------------------------- styles */
/* card: legend-style popover look, no grey ground on the summary */
.sib-style-card .sib-pane { box-shadow: 0 18px 40px rgba(16, 36, 61, .12); border-radius: 16px; }
.sib-style-card .sib-summary { background: transparent; border: 1px solid var(--sib-line); }
.sib-style-card .sib-fp .flatpickr-day { --sib-cell: 50px; }

/* bold: dark header band, high contrast */
.sib-style-bold .sib-pane { padding: 0; overflow: hidden; }
.sib-style-bold .sib-pane-head { background: var(--sib-navy); color: #fff; padding: 12px 16px; margin: 0; }
.sib-style-bold .sib-pane-head .sib-h { color: rgba(255, 255, 255, .8); }
.sib-style-bold .sib-hours { color: rgba(255, 255, 255, .7); }
.sib-style-bold .sib-cal-mount, .sib-style-bold .sib-slots, .sib-style-bold .sib-stage-hint, .sib-style-bold .sib-pane--period { padding: 14px 16px; }
.sib-style-bold .sib-stage-hint { padding-top: 0; }
.sib-style-bold .sib-fp .flatpickr-day { font-weight: 600; }
.sib-style-bold .sib-fp .flatpickr-months .flatpickr-prev-month, .sib-style-bold .sib-fp .flatpickr-months .flatpickr-next-month { background: var(--sib-navy); border-color: var(--sib-navy); color: #fff; fill: #fff; }
.sib-style-bold .sib-summary { background: var(--sib-navy); color: #fff; }
.sib-style-bold .sib-summary-text b { color: #fff; }
.sib-style-bold .sib-summary-text small, .sib-style-bold .sib-summary-muted { color: #b9c6d6; }
.sib-style-bold .sib-step-t, .sib-style-bold .sib-step.is-done .sib-step-t { letter-spacing: .08em; }

/* classic: the plain flatpickr look (round cells, no cards) */
.sib-style-classic .sib-pane { border: 0; box-shadow: none; padding: 0; background: transparent; }
.sib-style-classic .sib-fp.sib-fp--popup.flatpickr-calendar { border-radius: 5px; box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, .08); padding: 6px; }
.sib-style-classic .sib-fp .flatpickr-day { border-radius: 150px; height: 39px; font-size: 14px; }
.sib-style-classic .sib-fp .flatpickr-day.sib-inrange:not(.selected) { border-radius: 0; }
.sib-style-classic .sib-fp .flatpickr-months .flatpickr-prev-month, .sib-style-classic .sib-fp .flatpickr-months .flatpickr-next-month { border: 0; }
.sib-style-classic .sib-slot, .sib-style-classic .sib-chip, .sib-style-classic input.sib-input { border-radius: 4px; }
.sib-style-classic .sib-summary { background: transparent; padding: 10px 0; }

/* ------------------------------------------------- block-out reason tooltip */
.sib-fp .flatpickr-day[data-sib-reason] { cursor: help; }
.sib-fp .flatpickr-day[data-sib-reason]:hover::before {
    content: attr(data-sib-reason); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: var(--sib-navy); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.35; padding: 6px 9px; border-radius: 6px;
    white-space: normal; width: max-content; max-width: 200px; text-align: center; z-index: 20; pointer-events: none; box-shadow: 0 8px 20px rgba(16, 36, 61, .2);
}

/* ---------------------------------------------------------- popup panel */
.sib-cal--popup { position: relative; }
.sib-cal--popup .sib-trigger {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #d5dce5; border-radius: var(--sib-radius);
    background: var(--sib-card); color: #a3b1c2; font-size: 15px; font-weight: 400; text-align: left; cursor: pointer; margin: 0 0 8px;
}
.sib-cal--popup.has-dates .sib-trigger { color: var(--sib-navy); font-weight: 600; }
.sib-cal--popup .sib-trigger:hover, .sib-cal--popup.is-open .sib-trigger { border-color: var(--sib-accent); box-shadow: 0 0 0 3px var(--sib-tint); }
.sib-cal--popup .sib-trigger-text { flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.3; font-size: 14px; padding: 6px 0; }
.sib-cal--popup .sib-trigger-part { display: inline-block; white-space: nowrap; }
.sib-cal--popup .sib-trigger-caret { width: 8px; height: 8px; border-right: 2px solid var(--sib-soft); border-bottom: 2px solid var(--sib-soft); transform: rotate(45deg); margin: -4px 4px 0 0; flex: 0 0 auto; }
.sib-cal--popup .sib-panel { display: none; position: absolute; left: 0; top: 100%; z-index: 99999; width: min(480px, 100%); background: var(--sib-card); border: 1px solid var(--sib-line); border-radius: calc(var(--sib-radius) + 6px); box-shadow: 0 24px 60px rgba(16, 36, 61, .18); padding: 18px 16px 14px; margin-top: 4px; }
.sib-cal--popup .sib-panel .sib-pane { box-shadow: none; }
.sib-cal--popup.is-open .sib-panel { display: block; }
.sib-cal--popup .sib-panel-close { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--sib-ground); color: var(--sib-muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; z-index: 2; }
.sib-cal--popup .sib-panel-close:hover { background: var(--sib-tint); color: var(--sib-navy); }
.sib-cal--popup .sib-backdrop { display: none; }
.sib-cal--popup .sib-summary { margin-top: 12px; }
/* phones: a bottom sheet with a backdrop */
@media (max-width: 640px) {
    .sib-cal--popup .sib-backdrop { position: fixed; inset: 0; background: rgba(16, 36, 61, .45); z-index: 99998; }
    .sib-cal--popup.is-open .sib-backdrop { display: block; }
    .sib-cal--popup .sib-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; margin: 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
    body.sib-panel-open { overflow: hidden; }
}

/* ------------------------------------------- rental total under the price */
.sib-rental-total { display: none; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; padding: 10px 14px; border-radius: var(--sib-radius, 10px); background: rgba(var(--sib-accent-rgb, 2, 116, 190), .08); border: 1px solid rgba(var(--sib-accent-rgb, 2, 116, 190), .18); opacity: 0; transform: translateY(-4px); transition: opacity .28s ease, transform .28s ease; }
.sib-rental-total.is-in { display: flex; opacity: 1; transform: none; }
.sib-rental-total-label { font-size: 13px; font-weight: 600; color: #5b6b7f; }
.sib-rental-total-qty { font-weight: 400; }
.sib-rental-total-amount { font-size: 20px; font-weight: 700; color: var(--sib-accent, #0274be); margin-left: auto; }
.sib-rental-total-amount .woocommerce-Price-amount { color: inherit; }

/* =============================================================================
   Modern product page layout (Calendar Styler > Product page layout, 1.0.62):
   the pricing card printed by Includes\Price after the theme's p.price, the
   booking bar (.sib-summary) and the collapsed confirmation row. "Original"
   never gets .sib-pricing, "Modern Pricing" gets the card but not
   .sib-layout-modern, so the bar rules below apply to the full layout only.
   ============================================================================= */

/* the theme's <p class="price"> is empty on a booking product's page: the card replaces it */
body.sib-pricing-modern .summary p.price:empty, body.sib-pricing-modern .entry-summary > p.price:empty { display: none; }

/* ------------------------------------------------------------ pricing card */
.sib-pricing { font-family: inherit; font-size: 14px; line-height: 1.4; background: var(--sib-card); border: 1px solid var(--sib-line); border-radius: calc(var(--sib-radius) + 4px); box-shadow: 0 12px 32px rgba(16, 36, 61, .08); overflow: hidden; margin: 0 0 18px; max-width: 460px; text-align: left; }
.sib-pricing *, .sib-pricing *::before, .sib-pricing *::after { box-sizing: border-box; }
.sib-pricing-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 14px; padding: 14px 16px 12px; }
.sib-pricing-from { display: inline-flex; align-items: baseline; gap: 6px; }
.sib-pricing-pre { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sib-soft); }
.sib-pricing-amt { font-size: 30px; font-weight: 800; color: var(--sib-navy); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.sib-pricing-amt .woocommerce-Price-amount, .sib-pricing-amt .woocommerce-Price-amount bdi { color: inherit; font-size: inherit; font-weight: inherit; }
.sib-pricing-unit { font-size: 15px; font-weight: 700; color: var(--sib-muted); }
.sib-pricing-avail { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--sib-ok-bg); color: var(--sib-ok); white-space: nowrap; }
.sib-pricing-avail.low { background: var(--sib-warn-bg); color: var(--sib-warn); }
.sib-pricing-avail.out { background: #fdecec; color: #b42318; }
.sib-pricing-avail i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.sib-pricing-sub { font-size: 12.5px; color: var(--sib-muted); flex: 1 1 100%; }
.sib-pricing-sub .woocommerce-Price-amount { color: inherit; font-weight: 600; }
.sib-pricing-toggle { margin-left: auto; border: 0; background: none; color: var(--sib-accent); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; box-shadow: none; line-height: 1; }
.sib-pricing-toggle:hover, .sib-pricing-toggle:focus { background: none; color: var(--sib-accent); text-decoration: underline; text-underline-offset: 3px; outline: none; }
.sib-pricing-toggle svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.sib-pricing[data-open="false"] .sib-pricing-toggle svg { transform: rotate(-90deg); }
.sib-pricing[data-open="false"] .sib-rates { display: none; }
.sib-pricing--custom .sib-pricing-head { display: block; }
table.sib-rates { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; margin: 0; border: 0; }
.sib-rates th, .sib-rates td { padding: 8px 16px; text-align: left; border: 0; border-top: 1px solid var(--sib-line); background: transparent; vertical-align: middle; }
.sib-rates th { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sib-soft); background: var(--sib-ground); border-top: 0; }
.sib-rates td:last-child, .sib-rates th:last-child { text-align: right; }
.sib-rates td.per { color: var(--sib-soft); font-size: 12.5px; }
.sib-rates td .woocommerce-Price-amount { color: inherit; font-weight: inherit; }
.sib-rates tr.best td { background: var(--sib-tint); }
.sib-rates tr.best td:first-child { box-shadow: inset 3px 0 0 var(--sib-accent); }
/* under 640px an "auto" card starts folded: the calendar must be reachable without scrolling past a table */
@media (max-width: 640px) {
    .sib-pricing[data-open="auto"] .sib-rates { display: none; }
    .sib-pricing[data-open="auto"] .sib-pricing-toggle svg { transform: rotate(-90deg); }
    .sib-pricing-amt { font-size: 24px; }
}
/* in product loops (span.price) the card is a compact, folded headline */
.sib-pricing--loop { box-shadow: none; margin: 4px 0 0; max-width: none; display: block; }
.sib-pricing--loop .sib-pricing-head { padding: 8px 12px; }
.sib-pricing--loop .sib-pricing-amt { font-size: 20px; }
.sib-pricing--loop .sib-pricing-sub { display: none; }
/* skins */
.sib-style-bold.sib-pricing .sib-rates th { background: var(--sib-navy); color: rgba(255, 255, 255, .8); }
.sib-style-classic.sib-pricing { box-shadow: none; border-radius: 4px; }
.sib-style-card.sib-pricing { box-shadow: 0 18px 40px rgba(16, 36, 61, .12); border-radius: 16px; }

/* ------------------------------------------------------------ booking bar */
.sib-layout-modern .sib-summary { position: relative; z-index: 4; margin: 14px 0 0; padding: 12px 16px; gap: 10px 14px; align-items: center; background: var(--sib-card); border: 1px solid var(--sib-line); border-radius: calc(var(--sib-radius) + 2px); box-shadow: 0 -10px 30px rgba(16, 36, 61, .12); color: var(--sib-ink); }
/* the inline picker's bar sticks to the bottom of the viewport while the calendar is on screen */
.sib-layout-modern.sib-cal--inline:not(.sib-cal--popup) .sib-summary { position: sticky; bottom: 0; }
.sib-layout-modern.sib-cal--inline:not(.sib-cal--popup).is-collapsed .sib-summary { position: relative; box-shadow: none; background: var(--sib-ground); }
.sib-layout-modern .sib-summary-text { flex: 1 1 160px; min-width: 0; gap: 1px; }
.sib-layout-modern .sib-summary-text b { font-size: 20px; font-weight: 800; color: var(--sib-accent); letter-spacing: -.02em; line-height: 1.2; }
.sib-layout-modern .sib-summary-text b .woocommerce-Price-amount, .sib-layout-modern .sib-summary-text b bdi { color: inherit; font-size: inherit; font-weight: inherit; }
.sib-layout-modern .sib-summary-text b.sib-wait { font-size: 15px; font-weight: 700; color: var(--sib-navy); letter-spacing: 0; }
.sib-layout-modern .sib-summary-text small { font-size: 12.5px; color: var(--sib-muted); line-height: 1.35; }
.sib-summary-lines { display: none; flex: 1 1 100%; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; font-size: 13.5px; font-variant-numeric: tabular-nums; padding-bottom: 8px; border-bottom: 1px dashed var(--sib-line); }
.sib-layout-modern.is-complete .sib-summary-lines:not(:empty) { display: grid; }
.sib-summary-lines .sib-line-k { color: var(--sib-muted); min-width: 0; }
.sib-summary-lines .sib-line-v { text-align: right; white-space: nowrap; }
.sib-summary-lines .sib-line-v .woocommerce-Price-amount { color: inherit; font-weight: inherit; }
.sib-summary-lines .sib-line--discount { color: var(--sib-ok); }
.sib-summary-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.sib-summary-actions:empty { display: none; }
.sib-layout-modern .sib-summary .quantity { margin: 0; float: none; display: inline-flex; align-items: center; }
.sib-layout-modern .sib-summary .quantity input.qty { height: 40px; width: 64px; min-width: 0; margin: 0; border: 1px solid var(--sib-line); border-radius: var(--sib-radius); background: var(--sib-card); color: var(--sib-ink); text-align: center; font-weight: 700; padding: 0 4px; }
/* min-width: max-content is load-bearing. refreshPrice() appends .sib-btn-total ("· $900.00")
   to the button after it has been laid out, and themes commonly set an explicit width on
   .single_add_to_cart_button -- Astra does -- which a plain `width: auto` here loses to on
   specificity. The button then keeps its pre-price width and the total prints straight over
   its right padding and off the edge of the blue box. min-width wins over width in CSS
   sizing whatever the theme declares, so the button always grows to fit its own label. */
.sib-layout-modern .sib-summary .single_add_to_cart_button { margin: 0; height: 40px; line-height: 40px; padding: 0 20px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--sib-radius); float: none; flex: 0 0 auto; min-width: max-content; max-width: none; }
.sib-layout-modern .sib-summary .single_add_to_cart_button.sib-needs-dates, .sib-layout-modern .sib-summary .single_add_to_cart_button.sib-needs-dates:hover { background: var(--sib-line); border-color: var(--sib-line); color: var(--sib-soft); cursor: not-allowed; opacity: 1; }
.sib-btn-total { font-weight: 400; opacity: .92; white-space: nowrap; margin-left: 6px; }
.sib-btn-total .woocommerce-Price-amount { color: inherit; font-weight: inherit; }
.sib-layout-modern .sib-summary .sib-reset { order: 10; height: auto; padding: 0; border: 0; background: none; color: var(--sib-muted); text-decoration: underline; text-underline-offset: 3px; font-size: 12.5px; }
.sib-layout-modern .sib-summary .sib-reset:hover { color: var(--sib-accent); }
.sib-layout-modern .sib-summary .sibooking-before-button-container { order: 5; }
/* phones: full-width bottom bar while the calendar is open (same 640px breakpoint as the popup sheet) */
@media (max-width: 640px) {
    .sib-layout-modern.sib-cal--inline:not(.sib-cal--popup):not(.is-collapsed) .sib-summary { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; border-left: 0; border-right: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
    .sib-layout-modern .sib-summary-text b { font-size: 18px; }
    .sib-layout-modern .sib-summary .single_add_to_cart_button { padding: 0 16px; }
}

/* ------------------------------------------------------- confirmation row */
.sib-confirm { display: none; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--sib-line); border-radius: calc(var(--sib-radius) + 2px); background: var(--sib-card); font-size: 14px; max-width: 460px; }
.sib-cal--inline.has-time .sib-confirm { max-width: 760px; }
.sib-cal.is-collapsed .sib-confirm { display: flex; }
.sib-cal.is-collapsed .sib-stage { display: none; }
.sib-confirm-ok { width: 22px; height: 22px; border-radius: 50%; background: var(--sib-ok-bg); color: var(--sib-ok); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sib-confirm-ok svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sib-confirm-text { min-width: 0; }
.sib-confirm-text b { color: var(--sib-navy); }
.sib-confirm-len { color: var(--sib-muted); }
.sib-cal .sib-confirm-change { margin-left: auto; color: var(--sib-accent); font-weight: 700; font-size: 13px; cursor: pointer; background: none; border: 0; padding: 4px 0; flex: 0 0 auto; }
.sib-cal .sib-confirm-change:hover { text-decoration: underline; text-underline-offset: 3px; background: none; color: var(--sib-accent); }
.sib-style-bold .sib-confirm { background: var(--sib-navy); color: #fff; border-color: var(--sib-navy); }
.sib-style-bold .sib-confirm-text b { color: #fff; }
.sib-style-bold .sib-confirm-len { color: #b9c6d6; }
