/**
 * Sales Igniter Bookings -- skin for the date picker and the pricing card.
 *
 * 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.
 *
 * The one exception is the stock badge (.sib-left): --sib-ok / --sib-ok-bg and
 * --sib-warn / --sib-warn-bg are their own settings since 1.0.3, because "plenty
 * left" and "nearly gone" have to read as green and amber whatever the brand
 * colour is. CalendarStyle prints them on `.sib-cal,.sib-fp,.sib-pricing` -- the
 * same selector they are declared on below, and only when they differ from the
 * defaults here, so the inline block stays short. Every token below can still be
 * overridden from a theme by declaring it on that same selector group.
 *
 * 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: a calendar may be appended to <body>, outside .sib-cal;
   the pricing card 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: #5f6f82; /* 5.1:1 on white, 4.8:1 on the ground: small labels stay readable (was #7d8fa3, 3.3:1) */
    --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: var(--sib-soft); 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); }

/* -------------------------------------------------------------- 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; }
/* with the step bar on (sibookingCalendarUi.js sets .sib-cal--steps) a date pane's heading row repeats it: no row, no
   margin, its words kept for screen readers. The time pane keeps its opening hours and loses only the repeated name. */
.sib-cal.sib-cal--steps .sib-pane:not(.sib-pane--time) > .sib-pane-head,
.sib-cal.sib-cal--steps .sib-pane--time > .sib-pane-head .sib-h { position: absolute; inline-size: 1px; block-size: 1px; min-height: 0; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.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); }

/* the guided panel: 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 { 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; }
}

/* ---------------------------------------------------------- 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 .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; }
/* the year is flatpickr's number input; a theme's input styles (padding, height, border, a lighter weight,
   Twenty Twenty-Five's and Astra's input[type=number]) set it lower than the month: one baseline, the month's
   size and weight. It is shown, not typed (the arrows change the month), so no spinner. */
.sib-fp .flatpickr-current-month { align-items: baseline; line-height: 1.25; }
.sib-fp.sib-fp .flatpickr-current-month span.cur-month { margin: 0; padding: 0; font: inherit; font-weight: 700; line-height: inherit; color: var(--sib-navy); }
.sib-fp.sib-fp .flatpickr-current-month .numInputWrapper { display: inline-block; inline-size: auto; block-size: auto; margin: 0; padding: 0; line-height: inherit; }
.sib-fp.sib-fp .flatpickr-current-month input.cur-year { display: inline-block; box-sizing: content-box; inline-size: 4ch; min-inline-size: 0; block-size: auto; min-block-size: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; font: inherit; font-size: inherit; font-weight: 700; line-height: inherit; letter-spacing: inherit; color: var(--sib-navy); vertical-align: baseline; text-align: start; -moz-appearance: textfield; appearance: textfield; }
.sib-fp.sib-fp .flatpickr-current-month input.cur-year::-webkit-outer-spin-button, .sib-fp.sib-fp .flatpickr-current-month input.cur-year::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.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: 0; border-start-start-radius: var(--sib-radius); border-end-start-radius: var(--sib-radius); }
.sib-fp .flatpickr-day.sib-range-end:not(.sib-range-start) { border-radius: 0; border-start-end-radius: var(--sib-radius); border-end-end-radius: var(--sib-radius); }
.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); }

/* ------------------------------------------------------------- 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 { 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 .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 { 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: var(--sib-soft); font-size: 15px; font-weight: 400; text-align: start; cursor: pointer; margin: 0 0 8px;
}
/* a theme's button reset (Astra: outline none) must not hide where the keyboard is */
.sib-cal.sib-cal--popup .sib-trigger:focus-visible { outline: 2px solid var(--sib-accent); outline-offset: 2px; }
.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; }
/* The caret stays on PHYSICAL border-right: it is two borders rotated 45deg into a
   chevron that points DOWN, and down is down in both directions. border-inline-end
   would become border-left under RTL and the same rotation would aim it sideways.
   Its margin is logical, because trailing space does follow the text direction. */
.sib-cal--popup .sib-trigger-caret { width: 8px; height: 8px; border-right: 2px solid var(--sib-soft); /* rtl-exempt: chevron points DOWN, and down is down in both directions */ border-bottom: 2px solid var(--sib-soft); transform: rotate(45deg); margin-block: -4px 0; margin-inline: 0 4px; flex: 0 0 auto; }
.sib-cal--popup .sib-panel { display: none; position: absolute; inset-inline-start: 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; inset-inline-end: 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-inline-start: auto; }
.sib-rental-total-amount .woocommerce-Price-amount { color: inherit; }

/* =============================================================================
   The pricing card ("Modern Pricing", Calendar Styler > Product page layout),
   printed by Includes\Price after the theme's p.price.
   ============================================================================= */

/* 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: start; }
.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-inline-start: 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: start; 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: end; }
/* inside the add-to-cart form (the Rent view) WooCommerce's and the themes' form table rules
   (".woocommerce div.product form.cart table td { padding-left: 0 }") took the rows' padding */
.sib-pricing.sib-pricing table.sib-rates th, .sib-pricing.sib-pricing table.sib-rates td { padding: 8px 16px; border: 0; border-top: 1px solid var(--sib-line); vertical-align: middle; }
.sib-pricing.sib-pricing table.sib-rates th { border-top: 0; }
.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; }

/* ------------------------------------------------------------------ guests
   The party size (templates/single-product/add-to-cart/guests.php, driven by
   sibooking-guests.js). One row: an inline stepper. Several rows (adults /
   children / infants / pets, when a plugin adds them): a "2 guests" button that opens a dialog,
   a bottom sheet under 640px. Steppers are real 44px buttons. */
.sib-guests { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0; font-size: 14px; color: var(--sib-ink, #1f2a37); max-width: 460px; }
.sib-guests-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.sib-guests--single .sib-guests-row { flex-wrap: nowrap; }
.sib-guests-text { display: flex; flex-direction: column; min-width: 0; }
.sib-guests-label, .sib-guests-title { margin: 0; font-size: 14px; font-weight: 700; color: var(--sib-navy, #10243d); line-height: 1.25; }
.sib-guests-note { font-size: 12px; color: var(--sib-muted, #5b6b7f); line-height: 1.3; }
.sib-guests-stepper { display: inline-flex; align-items: center; gap: 8px; }
.sib-guests-input { width: 72px; min-height: 40px; padding: 0 6px; text-align: center; border: 1px solid var(--sib-line, #e4e9f0); border-radius: var(--sib-radius, 10px); font: inherit; }
.sib-guests.is-enhanced .sib-guests-input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); }
.sib-guests-btn { inline-size: 44px; block-size: 44px; min-inline-size: 44px; min-block-size: 44px; padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--sib-line, #e4e9f0); border-radius: 50%; background: var(--sib-card, #fff); color: var(--sib-ink, #1f2a37); cursor: pointer; line-height: 1; box-shadow: none; }
.sib-guests-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.sib-guests-btn:hover, .sib-guests-btn:focus { background: var(--sib-card, #fff); border-color: var(--sib-accent); color: var(--sib-accent); }
.sib-guests-btn:focus-visible { outline: 2px solid var(--sib-accent); outline-offset: 2px; }
.sib-guests-btn[aria-disabled="true"], .sib-guests-btn[aria-disabled="true"]:hover { opacity: .35; cursor: not-allowed; border-color: var(--sib-line, #e4e9f0); color: var(--sib-ink, #1f2a37); }
.sib-guests-value { min-inline-size: 2ch; text-align: center; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--sib-navy, #10243d); }
.sib-guests-why { flex: 1 1 100%; font-size: 12px; color: var(--sib-warn, #b8560d); }
.sib-guests-why:empty { display: none; }
.sib-guests-msg { flex: 1 1 100%; margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--sib-muted, #5b6b7f); }
.sib-guests-msg[hidden] { display: none; }

/* several rows: the trigger and its dialog */
.sib-guests-trigger { display: inline-flex; align-items: center; gap: 10px; min-block-size: 44px; padding-block: 0; padding-inline: 14px; border: 1px solid var(--sib-line, #e4e9f0); border-radius: var(--sib-radius, 10px); background: var(--sib-card, #fff); color: var(--sib-ink, #1f2a37); font-weight: 700; cursor: pointer; box-shadow: none; }
.sib-guests-trigger:hover, .sib-guests-trigger:focus { background: var(--sib-card, #fff); color: var(--sib-ink, #1f2a37); border-color: var(--sib-accent); }
.sib-guests-trigger:focus-visible { outline: 2px solid var(--sib-accent); outline-offset: 2px; }
.sib-guests-trigger[hidden] { display: none; }
/* a small down-pointing triangle: clip-path, so it points down whatever the writing direction */
.sib-guests-caret { width: 10px; height: 6px; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .2s; }
.sib-guests.is-open .sib-guests-caret { transform: rotate(180deg); }
.sib-guests--multi.is-enhanced .sib-guests-pop { position: absolute; inset-block-start: calc(100% + 6px); inset-inline-start: 0; z-index: 40; display: grid; gap: 14px; inline-size: 340px; max-inline-size: calc(100vw - 32px); padding: 16px; background: var(--sib-card, #fff); border: 1px solid var(--sib-line, #e4e9f0); border-radius: calc(var(--sib-radius, 10px) + 4px); box-shadow: 0 12px 32px rgba(16, 36, 61, .16); }
.sib-guests--multi .sib-guests-pop { display: grid; gap: 12px; flex: 1 1 100%; }
.sib-guests--multi .sib-guests-pop[hidden] { display: none; }
.sib-guests--multi .sib-guests-row { justify-content: space-between; flex-wrap: wrap; padding-block-end: 12px; border-block-end: 1px solid var(--sib-line, #e4e9f0); }
.sib-guests--multi .sib-guests-row:last-of-type { border-block-end: 0; padding-block-end: 0; }
.sib-guests-foot { display: flex; justify-content: flex-end; }
.sib-guests-done { min-block-size: 44px; padding-block: 0; padding-inline: 12px; border: 0; background: none; color: var(--sib-accent); font-weight: 700; cursor: pointer; box-shadow: none; }
.sib-guests-done:hover, .sib-guests-done:focus { background: none; color: var(--sib-accent); text-decoration: underline; text-underline-offset: 3px; }
/* opened from the other edge when it would run past the product's column (sibooking-guests.js open()) */
.sib-guests--multi.is-enhanced .sib-guests-pop.is-end { inset-inline-start: auto; inset-inline-end: 0; }

@media (max-width: 640px) {
    .sib-guests--multi.is-enhanced .sib-guests-pop { position: fixed; inset-inline: 0; inset-block-start: auto; inset-block-end: 0; z-index: 100001; inline-size: auto; max-inline-size: none; max-block-size: 85vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding-block-end: calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(16, 36, 61, .22); }
}

/* guests who each take a place: the quantity is the seats, set from the party */
form.cart.sib-guests-person .quantity { display: none; }

/* a line above the summary: why the dates had to be cleared */
.sib-note { margin: 10px 0 0; padding-block: 8px; padding-inline: 12px; border-radius: var(--sib-radius, 10px); background: var(--sib-warn-bg, #fef3e7); color: var(--sib-warn, #b8560d); font-size: 13px; line-height: 1.35; max-width: 460px; }
.sib-note[hidden] { display: none; }

/* ----------------------------------------------- the card's price for the dates
   "$630 for 3 nights" in place of "From $210 / night" once the dates are priced
   (the picker's quote on the product page, or a listing that knows the dates). */
.sib-pricing.has-total .sib-pricing-from, .sib-pricing.has-total .sib-pricing-sub { display: none; }
.sib-pricing-total { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.sib-pricing-total-label { font-size: 15px; font-weight: 700; color: var(--sib-muted); }
.sib-pricing--loop .sib-pricing-total-label { font-size: 13px; }

/* what the price covers (extra rows added to the card): a note under the headline, rows under the rates */
.sib-pricing.has-total .sib-pricing-note { display: block; }
.sib-rates tr.sib-rates-extra td { color: var(--sib-muted); font-size: .95em; }
.sib-rates tr.sib-rates-extra:first-of-type td { border-block-start: 1px dashed var(--sib-line); }

/* JS-01: a price quote that could not be loaded says so, with a way to try again */
.sib-ajax-error {
	color: var(--sib-warn, #965e00);
	font-size: 0.9em;
}
.sib-ajax-error .sib-ajax-retry {
	color: inherit;
	text-decoration: underline;
	margin-inline-start: 0.35em;
}

/* ---- How many (sibooking-product-form.js): WooCommerce's quantity box on a rental form, labelled and
   drawn like the Guests stepper -- a plain number between two round − / + buttons, the label on the row's
   centre line, never wrapping. The number is still WooCommerce's real, focusable <input>.
   Themes and WooCommerce style the quantity box and its input hard (".woocommerce div.product form.cart
   div.quantity .qty" is 0,5,3; Twenty Twenty-Five, Astra and most others add their own), so these selectors
   repeat .sib-qty to outrank them without !important. */
.sib-guests-fits { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--sib-muted, inherit); }
form.cart div.quantity.sib-qty.sib-qty.sib-qty, form.cart .sib-rb-qty.sib-qty.sib-qty { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 12px; inline-size: auto; max-inline-size: 100%; min-inline-size: max-content; float: none; }
/* the same rhythm as the rows above it (Guests opens 12px down), and room before Reserve under it */
form.cart div.quantity.sib-qty.sib-qty.sib-qty { margin: 12px 0 16px; }
/* WooCommerce's Add to Cart form block (block themes) lays form.cart out as a grid made for a quantity box and a
   button beside it. A rental form holds the calendar, Guests and the rest, and the grid squeezed them (the calendar
   is an inline-size container, so it gave the grid no width: 220 of 330px on a phone), stretched Reserve to the
   How many row's height and pushed the form past a phone's column. A rental form is a plain block, as in classic
   themes: How many is a row of its own like Guests, Reserve under it. */
.wp-block-woocommerce-add-to-cart-form form.cart:has(.sib-cal), .wp-block-woocommerce-add-to-cart-form .variations_button:has(.sib-cal) { display: block; }
/* inside the booking bar the bar's own gaps apply */
form.cart .sib-summary div.quantity.sib-qty.sib-qty.sib-qty { margin: 0; }
/* seats (Guests counted per person): the quantity is the party, nothing to type */
form.cart.sib-guests-person div.quantity.sib-qty.sib-qty.sib-qty { display: none; }
/* labels on the centre line of their stepper: themes give <label> a bottom margin (Twenty Twenty-Five 0.7em) */
.sib-guests .sib-guests-label, .sib-guests .sib-guests-title, form.cart .sib-qty .sib-qty-label { margin: 0; padding: 0; }
.sib-qty-label { flex: none; white-space: nowrap; font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--sib-navy, #10243d); }
.sib-qty-stepper { display: inline-flex; flex: none; align-items: center; gap: 8px; }
.sib-qty-btn { inline-size: 44px; block-size: 44px; min-inline-size: 44px; min-block-size: 44px; padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--sib-line, #e4e9f0); border-radius: 50%; background: var(--sib-card, #fff); color: var(--sib-ink, #1f2a37); cursor: pointer; line-height: 1; box-shadow: none; }
.sib-qty-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.sib-qty-btn:hover, .sib-qty-btn:focus { background: var(--sib-card, #fff); border-color: var(--sib-accent); color: var(--sib-accent); }
.sib-qty-btn:focus-visible { outline: 2px solid var(--sib-accent); outline-offset: 2px; }
.sib-qty-btn[aria-disabled="true"], .sib-qty-btn[aria-disabled="true"]:hover { opacity: .35; cursor: not-allowed; border-color: var(--sib-line, #e4e9f0); color: var(--sib-ink, #1f2a37); }
/* the number: plain and compact like Guests' (no box), a visible ring when it has the focus */
form.cart .sib-qty.sib-qty.sib-qty .sib-qty-stepper input.sib-qty-input[type="number"] { box-sizing: border-box; inline-size: 3.5ch; min-inline-size: 3.5ch; max-inline-size: 5ch; block-size: 44px; min-block-size: 0; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; box-shadow: none; outline: none; font-family: inherit; font-size: 16px; font-weight: 800; line-height: normal; letter-spacing: normal; font-variant-numeric: tabular-nums; color: var(--sib-navy, #10243d); text-align: center; -moz-appearance: textfield; appearance: textfield; }
form.cart .sib-qty.sib-qty.sib-qty .sib-qty-stepper input.sib-qty-input[type="number"]:focus { outline: 2px solid var(--sib-accent, currentColor); outline-offset: 2px; box-shadow: none; }
form.cart .sib-qty.sib-qty.sib-qty .sib-qty-stepper input.sib-qty-input[type="number"]::-webkit-outer-spin-button, form.cart .sib-qty.sib-qty.sib-qty .sib-qty-stepper input.sib-qty-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- Rent / Buy (Includes\RentBuy): a switch of two buttons, one view at a time, one full-width button
   per view. Without JavaScript (no .sib-rb-js on the form) both views show, each under its heading. */
form.cart .sib-rb-switch, form.cart .sib-rb-view { flex: 1 1 100%; inline-size: 100%; max-inline-size: 100%; box-sizing: border-box; }
.sib-rb-switch { display: none; }
form.cart.sib-rb-js .sib-rb-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 16px; border: 1px solid currentColor; border-radius: var(--sib-radius, 8px); overflow: hidden; }
.sib-rb-option { -webkit-appearance: none; appearance: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-block-size: 44px; margin: 0; padding: 14px 18px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; line-height: 1.25; text-align: start; text-transform: none; letter-spacing: normal; cursor: pointer; box-shadow: none; }
.sib-rb-option + .sib-rb-option { border-inline-start: 1px solid currentColor; }
.sib-rb-option[aria-pressed="true"] { background: var(--sib-accent, #111); color: #fff; }
.sib-rb-option:hover { text-decoration: none; }
.sib-rb-option:focus-visible { outline: 2px solid var(--sib-accent, currentColor); outline-offset: -5px; box-shadow: inset 0 0 0 3px #fff; }
.sib-rb-option-name { font-size: 16px; font-weight: 700; }
.sib-rb-option-price { font-size: 13px; font-weight: 400; opacity: .85; }
.sib-rb-option-price del { opacity: .75; }
.sib-rb-option-price ins { text-decoration: none; }
.sib-rb-view[hidden], form.cart.sib-rb-js .sib-rb-view:not(.is-active) { display: none; }
.sib-rb-heading { margin: 16px 0 8px; font-size: 16px; font-weight: 700; }
form.cart.sib-rb-js .sib-rb-heading { display: none; }
form.cart:not(.sib-rb-js) .sib-rb-qty { display: none; }
/* WooCommerce floats its form button left and a theme may size it (Astra: 50%); in a view it is one full-width button */
form.cart div.sib-rb-view > .single_add_to_cart_button.button.alt { display: block; float: none; clear: both; inline-size: 100%; max-inline-size: 100%; margin: 16px 0 0; text-align: center; }
.sib-rb-price { margin: 0 0 8px; font-size: 1.6em; font-weight: 700; line-height: 1.2; }
.sib-rb-view--buy .stock { margin: 0 0 8px; }
.sib-rb-qty { margin: 16px 0 0; }
.sib-rb-note { margin: 8px 0 0; font-size: 13px; color: var(--sib-muted, inherit); }

