/* ==========================================================================
   In-Person Bookings — front-end booking wizard
   Scoped to .ipb-booking so it never leaks into the theme.
   Mobile-first; all colors flow from the custom properties below so the
   palette can be re-skinned from one place (or filtered in PHP).
   ========================================================================== */

.ipb-booking {
    --ipb-navy: #1e3a5f;
    --ipb-navy-700: #162c48;
    --ipb-navy-050: #f2f6fb;
    --ipb-navy-100: #e2ecf7;
    --ipb-amber: #e8a020;
    --ipb-amber-600: #d18d13;
    --ipb-green: #1f7a45;
    --ipb-green-bg: #e8f6ed;
    --ipb-red: #b3261e;
    --ipb-red-bg: #fdecea;
    --ipb-amber-bg: #fff5e5;
    --ipb-ink: #1f2733;
    --ipb-muted: #5f6b7a;
    --ipb-faint: #8b95a3;
    --ipb-line: #dfe4ea;
    --ipb-line-soft: #eef1f5;
    --ipb-surface: #ffffff;
    --ipb-surface-alt: #f7f9fc;
    --ipb-radius: 14px;
    --ipb-radius-sm: 10px;
    --ipb-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .08);
    --ipb-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --ipb-focus: 0 0 0 3px rgba(30, 58, 95, .22);

    box-sizing: border-box;
    color: var(--ipb-ink);
    font-size: 16px;
    line-height: 1.5;
    margin: 32px 0;
    -webkit-text-size-adjust: 100%;
}

.ipb-booking *,
.ipb-booking *::before,
.ipb-booking *::after { box-sizing: border-box; }

.ipb-booking [hidden] { display: none !important; }

.ipb-booking button,
.ipb-booking input,
.ipb-booking select,
.ipb-booking textarea {
    font: inherit;
    font-family: inherit;
}

/* Colour is inherited for form fields only. Applying it to buttons as well
   outranks the .ipb-btn--* variants (0,1,1 beats 0,1,0), which painted the
   label of every <button class="ipb-btn--navy"> in body-text ink on navy. */
.ipb-booking input,
.ipb-booking select,
.ipb-booking textarea { color: inherit; }

.ipb-booking :focus-visible {
    outline: 2px solid var(--ipb-navy);
    outline-offset: 2px;
}

.ipb-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- shell -- */

.ipb-shell {
    background: var(--ipb-surface);
    border: 1px solid var(--ipb-line);
    border-radius: var(--ipb-radius);
    box-shadow: var(--ipb-shadow);
    overflow: hidden;
}

.ipb-head {
    background: linear-gradient(135deg, var(--ipb-navy) 0%, var(--ipb-navy-700) 100%);
    color: #fff;
    padding: 26px 22px 22px;
}

.ipb-head h2 {
    margin: 0;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.ipb-head p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: .92rem;
    max-width: 62ch;
}

.ipb-head-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.ipb-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
}

.ipb-badge svg { width: 15px; height: 15px; flex: none; }
.ipb-badge--warn { background: rgba(232, 160, 32, .2); border-color: rgba(232, 160, 32, .55); color: #ffd694; }

/* ------------------------------------------------------------ stepper -- */

.ipb-steps {
    display: flex;
    gap: 4px;
    padding: 14px 16px;
    background: var(--ipb-surface-alt);
    border-bottom: 1px solid var(--ipb-line);
    overflow-x: auto;
    scrollbar-width: none;
}
.ipb-steps::-webkit-scrollbar { display: none; }

.ipb-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 10px;
    border-radius: var(--ipb-radius-sm);
    background: none;
    border: 0;
    text-align: left;
    cursor: default;
    color: var(--ipb-faint);
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}

.ipb-step[data-clickable="1"] { cursor: pointer; }
.ipb-step[data-clickable="1"]:hover { background: var(--ipb-navy-100); color: var(--ipb-navy); }

.ipb-step-num {
    flex: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: #fff;
    border: 1.5px solid var(--ipb-line);
    color: var(--ipb-faint);
    font-size: .78rem;
    font-weight: 700;
}

.ipb-step-label { overflow: hidden; text-overflow: ellipsis; }

.ipb-step.is-active { color: var(--ipb-navy); background: var(--ipb-navy-100); }
.ipb-step.is-active .ipb-step-num { background: var(--ipb-navy); border-color: var(--ipb-navy); color: #fff; }
.ipb-step.is-done { color: var(--ipb-green); }
.ipb-step.is-done .ipb-step-num { background: var(--ipb-green-bg); border-color: var(--ipb-green); color: var(--ipb-green); }

/* ------------------------------------------------------------- layout -- */

.ipb-layout { display: block; }
.ipb-main { padding: 22px 18px 24px; min-width: 0; }

.ipb-aside { display: none; }

.ipb-panel-title {
    margin: 0 0 4px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ipb-navy);
    letter-spacing: -.01em;
}

.ipb-panel-sub {
    margin: 0 0 18px;
    color: var(--ipb-muted);
    font-size: .88rem;
}

/* ---------------------------------------------------------- locations -- */

.ipb-loc-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }

.ipb-loc {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1.5px solid var(--ipb-line);
    border-radius: var(--ipb-radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    min-height: 44px;
}

.ipb-loc:hover { border-color: var(--ipb-navy); background: var(--ipb-navy-050); }
.ipb-loc input { position: absolute; opacity: 0; pointer-events: none; }

.ipb-loc-mark {
    flex: none;
    width: 20px; height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    border: 2px solid var(--ipb-line);
    background: #fff;
    display: grid; place-items: center;
    transition: border-color .15s;
}
.ipb-loc-mark::after {
    content: "";
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--ipb-navy);
    transform: scale(0);
    transition: transform .15s;
}

.ipb-loc-body { min-width: 0; }
.ipb-loc-name { font-weight: 700; color: var(--ipb-navy); display: block; }
.ipb-loc-addr { display: block; color: var(--ipb-muted); font-size: .85rem; margin-top: 2px; }
.ipb-loc-tz { display: inline-block; margin-top: 6px; font-size: .74rem; font-weight: 600; color: var(--ipb-faint); background: var(--ipb-surface-alt); border: 1px solid var(--ipb-line-soft); border-radius: 999px; padding: 2px 9px; }

.ipb-loc.is-selected { border-color: var(--ipb-navy); background: var(--ipb-navy-050); box-shadow: var(--ipb-focus); }
.ipb-loc.is-selected .ipb-loc-mark { border-color: var(--ipb-navy); }
.ipb-loc.is-selected .ipb-loc-mark::after { transform: scale(1); }
.ipb-loc:focus-within { border-color: var(--ipb-navy); }

/* ------------------------------------------------------ mobile service -- */

.ipb-mode { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 18px; }

.ipb-mode-opt {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 16px;
    border: 1.5px solid var(--ipb-line);
    border-radius: var(--ipb-radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    min-height: 44px;
}
.ipb-mode-opt:hover { border-color: var(--ipb-navy); background: var(--ipb-navy-050); }
.ipb-mode-opt input { position: absolute; opacity: 0; pointer-events: none; }

.ipb-mode-mark {
    flex: none;
    width: 20px; height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    border: 2px solid var(--ipb-line);
    background: #fff;
    display: grid; place-items: center;
}
.ipb-mode-mark::after {
    content: "";
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--ipb-navy);
    transform: scale(0);
    transition: transform .15s;
}

.ipb-mode-name { display: block; font-weight: 700; color: var(--ipb-navy); }
.ipb-mode-desc { display: block; margin-top: 2px; font-size: .85rem; color: var(--ipb-muted); }

.ipb-mode-opt.is-selected { border-color: var(--ipb-navy); background: var(--ipb-navy-050); }
.ipb-mode-opt.is-selected .ipb-mode-mark { border-color: var(--ipb-navy); }
.ipb-mode-opt.is-selected .ipb-mode-mark::after { transform: scale(1); }
.ipb-mode-opt:focus-within { border-color: var(--ipb-navy); box-shadow: var(--ipb-focus); }

.ipb-sub-head {
    margin: 22px 0 10px;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 700;
    color: var(--ipb-faint);
}

.ipb-travel { margin-bottom: 4px; }
.ipb-travel #ipb-travel-check { width: 100%; }

.ipb-travel-quote {
    margin-top: 14px;
    padding: 16px;
    border: 1.5px solid var(--ipb-navy-100);
    border-radius: var(--ipb-radius-sm);
    background: var(--ipb-navy-050);
}

.ipb-travel-checking { margin: 0; color: var(--ipb-muted); font-size: .9rem; }

.ipb-travel-head {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-weight: 700;
    color: var(--ipb-navy);
    font-size: .92rem;
    margin-bottom: 12px;
}
.ipb-travel-head svg { width: 17px; height: 17px; flex: none; color: var(--ipb-green); margin-top: 2px; }

.ipb-travel-rows { display: grid; gap: 8px; }
.ipb-travel-rows > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .9rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ipb-navy-100);
}
.ipb-travel-rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ipb-travel-rows span { color: var(--ipb-muted); }
.ipb-travel-rows strong { color: var(--ipb-ink); text-align: right; }

.ipb-travel-note {
    margin: 10px 0 0;
    font-size: .8rem;
    line-height: 1.55;
    color: var(--ipb-muted);
}

@media (min-width: 600px) {
    .ipb-mode { grid-template-columns: 1fr 1fr; }
    .ipb-travel #ipb-travel-check { width: auto; }
}

/* ----------------------------------------------------------- calendar -- */

.ipb-cal {
    border: 1px solid var(--ipb-line);
    border-radius: var(--ipb-radius-sm);
    overflow: hidden;
    background: #fff;
}

.ipb-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 10px;
    background: var(--ipb-surface-alt);
    border-bottom: 1px solid var(--ipb-line);
}

.ipb-cal-title { font-weight: 700; color: var(--ipb-navy); font-size: .98rem; }

.ipb-nav {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--ipb-line);
    background: #fff;
    border-radius: 9px;
    cursor: pointer;
    color: var(--ipb-navy);
    transition: background .15s, border-color .15s;
}
.ipb-nav:hover:not(:disabled) { background: var(--ipb-navy); border-color: var(--ipb-navy); color: #fff; }
.ipb-nav:disabled { opacity: .35; cursor: not-allowed; }
.ipb-nav svg { width: 17px; height: 17px; }

.ipb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px; gap: 2px; }

.ipb-dow {
    text-align: center;
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ipb-faint);
    padding: 6px 0 8px;
}

.ipb-day {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: none;
    color: var(--ipb-ink);
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
}

.ipb-day:hover:not(:disabled) { background: var(--ipb-navy-100); border-color: var(--ipb-navy-100); }
.ipb-day:disabled { color: #c3c9d2; cursor: not-allowed; font-weight: 500; }
.ipb-day.is-empty { visibility: hidden; }

.ipb-day-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--ipb-green);
    opacity: .85;
}
.ipb-day:disabled .ipb-day-dot { background: transparent; }

.ipb-day.is-today { border-color: var(--ipb-navy-100); }
.ipb-day.is-today::after {
    content: "";
    position: absolute;
    inset: auto 0 4px 0;
    margin: 0 auto;
    width: 14px; height: 2px;
    border-radius: 2px;
    background: var(--ipb-amber);
}

.ipb-day.is-selected,
.ipb-day.is-selected:hover {
    background: var(--ipb-navy);
    border-color: var(--ipb-navy);
    color: #fff;
}
.ipb-day.is-selected .ipb-day-dot { background: var(--ipb-amber); }
.ipb-day.is-selected::after { background: rgba(255, 255, 255, .5); }

.ipb-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 14px 12px;
    border-top: 1px solid var(--ipb-line-soft);
    font-size: .76rem;
    color: var(--ipb-muted);
}
.ipb-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.ipb-legend-swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--ipb-green); }
.ipb-legend-swatch--off { background: #c3c9d2; }
.ipb-legend-swatch--sel { background: var(--ipb-navy); }

/* -------------------------------------------------------------- slots -- */

.ipb-slots-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    margin: 22px 0 10px;
}
.ipb-slots-head h4 { margin: 0; font-size: .95rem; color: var(--ipb-navy); font-weight: 700; }
.ipb-tzline { font-size: .78rem; color: var(--ipb-muted); }

.ipb-slot-group + .ipb-slot-group { margin-top: 16px; }

.ipb-slot-group-label {
    display: flex; align-items: center; gap: 8px;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    color: var(--ipb-faint);
    margin-bottom: 8px;
}
.ipb-slot-group-label::after { content: ""; flex: 1; height: 1px; background: var(--ipb-line-soft); }

.ipb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }

.ipb-slot {
    min-height: 46px;
    padding: 11px 8px;
    border: 1.5px solid var(--ipb-navy-100);
    background: var(--ipb-navy-050);
    color: var(--ipb-navy);
    border-radius: var(--ipb-radius-sm);
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s, transform .08s;
}
.ipb-slot:hover { background: var(--ipb-navy); border-color: var(--ipb-navy); color: #fff; }
.ipb-slot:active { transform: scale(.98); }
.ipb-slot.is-selected { background: var(--ipb-navy); border-color: var(--ipb-navy); color: #fff; }

/* ------------------------------------------------------------- fields -- */

.ipb-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
.ipb-field { margin-bottom: 14px; }

.ipb-label {
    display: block;
    font-weight: 700;
    color: var(--ipb-navy);
    font-size: .85rem;
    margin-bottom: 6px;
}
.ipb-label .ipb-opt { font-weight: 500; color: var(--ipb-faint); }

.ipb-input,
.ipb-textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--ipb-line);
    border-radius: var(--ipb-radius-sm);
    background: #fff;
    font-size: 16px; /* 16px keeps iOS Safari from zooming on focus */
    line-height: 1.35;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}
.ipb-textarea { min-height: 96px; resize: vertical; }

.ipb-input:hover,
.ipb-textarea:hover { border-color: #c4ccd7; }

.ipb-input:focus,
.ipb-textarea:focus {
    outline: none;
    border-color: var(--ipb-navy);
    box-shadow: var(--ipb-focus);
}

.ipb-hint { display: block; margin-top: 6px; font-size: .78rem; color: var(--ipb-faint); }

.ipb-err {
    display: none;
    margin-top: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ipb-red);
}

.ipb-field.has-error .ipb-input,
.ipb-field.has-error .ipb-textarea { border-color: var(--ipb-red); }
.ipb-field.has-error .ipb-err { display: block; }
.ipb-field.has-error .ipb-svc-grid { outline: 1px solid var(--ipb-red); outline-offset: 6px; border-radius: 6px; }

/* ----------------------------------------------------------- services -- */

.ipb-svc-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }

.ipb-svc {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1.5px solid var(--ipb-line);
    border-radius: var(--ipb-radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    min-height: 52px;
}
.ipb-svc:hover { border-color: var(--ipb-navy); background: var(--ipb-navy-050); }
.ipb-svc input { position: absolute; opacity: 0; pointer-events: none; }

.ipb-svc-mark {
    flex: none;
    width: 22px; height: 22px;
    border-radius: 6px;
    border: 2px solid var(--ipb-line);
    background: #fff;
    display: grid; place-items: center;
    transition: background .15s, border-color .15s;
}
.ipb-svc-mark svg { width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity .12s; }

.ipb-svc-text { min-width: 0; }
.ipb-svc-name { display: block; font-weight: 700; color: var(--ipb-ink); font-size: .92rem; }
.ipb-svc-desc { display: block; color: var(--ipb-muted); font-size: .78rem; margin-top: 1px; }

.ipb-svc.is-checked { border-color: var(--ipb-navy); background: var(--ipb-navy-050); }
.ipb-svc.is-checked .ipb-svc-mark { background: var(--ipb-navy); border-color: var(--ipb-navy); }
.ipb-svc.is-checked .ipb-svc-mark svg { opacity: 1; }
.ipb-svc:focus-within { border-color: var(--ipb-navy); box-shadow: var(--ipb-focus); }

/* ------------------------------------------------------------ review -- */

.ipb-review {
    border: 1px solid var(--ipb-line);
    border-radius: var(--ipb-radius-sm);
    overflow: hidden;
}

.ipb-review-row {
    display: flex;
    gap: 12px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--ipb-line-soft);
    font-size: .9rem;
}
.ipb-review-row:last-child { border-bottom: 0; }
.ipb-review-k { flex: none; width: 108px; color: var(--ipb-muted); font-weight: 600; }
.ipb-review-v { min-width: 0; font-weight: 600; color: var(--ipb-ink); overflow-wrap: anywhere; }
.ipb-review-v small { display: block; font-weight: 500; color: var(--ipb-muted); margin-top: 2px; }

.ipb-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 15px 16px;
    background: var(--ipb-navy-050);
    border: 1px solid var(--ipb-navy-100);
    border-radius: var(--ipb-radius-sm);
}
.ipb-total-label { font-weight: 700; color: var(--ipb-navy); }
.ipb-total-label small { display: block; font-weight: 500; font-size: .78rem; color: var(--ipb-muted); margin-top: 2px; }
.ipb-total-amt { font-size: 1.5rem; font-weight: 800; color: var(--ipb-navy); letter-spacing: -.02em; }

.ipb-checklist {
    margin: 16px 0 0;
    padding: 15px 16px;
    background: var(--ipb-amber-bg);
    border: 1px solid #f2dcb4;
    border-radius: var(--ipb-radius-sm);
}
.ipb-checklist h5 { margin: 0 0 8px; font-size: .85rem; color: #8a5b00; font-weight: 700; }
.ipb-checklist ul { margin: 0; padding-left: 18px; font-size: .85rem; color: #5c4a2c; line-height: 1.75; }

/* ------------------------------------------------------------ actions -- */

.ipb-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 22px;
}

.ipb-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 1.5px solid transparent;
    border-radius: var(--ipb-radius-sm);
    padding: 14px 20px;
    min-height: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background .15s, border-color .15s, color .15s, opacity .15s;
    text-decoration: none;
}
.ipb-btn svg { width: 17px; height: 17px; flex: none; }

.ipb-btn--primary { background: var(--ipb-amber); color: var(--ipb-navy); flex: 1; }
.ipb-btn--primary:hover:not(:disabled) { background: var(--ipb-amber-600); }

.ipb-btn--ghost { background: #fff; border-color: var(--ipb-line); color: var(--ipb-muted); }
.ipb-btn--ghost:hover:not(:disabled) { border-color: var(--ipb-navy); color: var(--ipb-navy); }

.ipb-btn--navy { background: var(--ipb-navy); color: #fff; }
.ipb-btn--navy:hover:not(:disabled) { background: var(--ipb-navy-700); }

.ipb-btn--danger { background: #fff; border-color: #e6bcb8; color: var(--ipb-red); }
.ipb-btn--danger:hover:not(:disabled) { background: var(--ipb-red-bg); }

.ipb-btn:disabled { opacity: .55; cursor: not-allowed; }
.ipb-btn.is-busy { position: relative; color: transparent !important; }
.ipb-btn.is-busy::after {
    content: "";
    position: absolute;
    width: 19px; height: 19px;
    border: 2.5px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    color: var(--ipb-navy);
    animation: ipb-spin .7s linear infinite;
}
.ipb-btn--navy.is-busy::after,
.ipb-btn--primary.is-busy::after { color: var(--ipb-navy); }
.ipb-btn--navy.is-busy::after { color: #fff; }

@keyframes ipb-spin { to { transform: rotate(360deg); } }

.ipb-finenote { margin: 10px 0 0; text-align: center; font-size: .78rem; color: var(--ipb-faint); }

/* ------------------------------------------------------------- alerts -- */

.ipb-alert {
    display: flex;
    gap: 11px;
    padding: 13px 15px;
    border-radius: var(--ipb-radius-sm);
    font-size: .88rem;
    margin: 0 0 16px;
    border: 1px solid transparent;
}
.ipb-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ipb-alert--error { background: var(--ipb-red-bg); border-color: #f2c7c3; color: #8c1d18; }
.ipb-alert--success { background: var(--ipb-green-bg); border-color: #bde5cb; color: #14532d; }
.ipb-alert--info { background: var(--ipb-navy-050); border-color: var(--ipb-navy-100); color: var(--ipb-navy); }
.ipb-alert--warn { background: var(--ipb-amber-bg); border-color: #f2dcb4; color: #8a5b00; }
.ipb-alert p { margin: 0; }
.ipb-alert strong { display: block; margin-bottom: 2px; }

.ipb-empty {
    padding: 26px 18px;
    text-align: center;
    color: var(--ipb-muted);
    background: var(--ipb-surface-alt);
    border: 1px dashed var(--ipb-line);
    border-radius: var(--ipb-radius-sm);
    font-size: .88rem;
}
.ipb-empty strong { display: block; color: var(--ipb-ink); margin-bottom: 4px; }

/* ---------------------------------------------------------- skeletons -- */

.ipb-skel {
    background: linear-gradient(90deg, #eef1f5 25%, #f7f9fc 37%, #eef1f5 63%);
    background-size: 400% 100%;
    animation: ipb-shimmer 1.3s ease infinite;
    border-radius: var(--ipb-radius-sm);
}
.ipb-skel-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ipb-skel-slot { height: 46px; }

@keyframes ipb-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* -------------------------------------------------------- success view -- */

.ipb-done { padding: 30px 20px; text-align: center; }
.ipb-done-icon {
    width: 62px; height: 62px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--ipb-green-bg);
    color: var(--ipb-green);
    display: grid; place-items: center;
}
.ipb-done-icon svg { width: 30px; height: 30px; }
.ipb-done h3 { margin: 0 0 8px; font-size: 1.3rem; color: var(--ipb-navy); }
.ipb-done > p { margin: 0 auto 20px; color: var(--ipb-muted); max-width: 52ch; font-size: .92rem; }
.ipb-done .ipb-review { text-align: left; max-width: 460px; margin: 0 auto; }
.ipb-done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.ipb-ref {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--ipb-navy-050);
    border: 1px solid var(--ipb-navy-100);
    font-weight: 700;
    font-size: .85rem;
    color: var(--ipb-navy);
    letter-spacing: .02em;
}

/* --------------------------------------------------------- mobile bar -- */

.ipb-mobilebar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--ipb-line);
}
.ipb-mobilebar .ipb-btn { flex: 1; }
.ipb-mobilebar-info { min-width: 0; font-size: .78rem; line-height: 1.35; color: var(--ipb-muted); }
.ipb-mobilebar-info strong { display: block; color: var(--ipb-navy); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------ manage panel -- */

.ipb-manage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ------------------------------------------------------- breakpoints -- */

/* On narrow screens four labels cannot fit — keep the numbers as the map and
   show only the label for the step the customer is on. */
@media (max-width: 599px) {
    .ipb-steps { gap: 2px; padding: 12px 12px; }
    .ipb-step { flex: 0 0 auto; padding: 6px; gap: 0; }
    .ipb-step .ipb-step-label { display: none; }
    .ipb-step.is-active { flex: 1 1 auto; gap: 8px; padding: 6px 12px 6px 6px; }
    .ipb-step.is-active .ipb-step-label { display: block; }
}

@media (min-width: 600px) {
    .ipb-head { padding: 30px 30px 26px; }
    .ipb-head h2 { font-size: 1.6rem; }
    .ipb-main { padding: 26px 30px 30px; }
    .ipb-row--2 { grid-template-columns: 1fr 1fr; }
    .ipb-svc-grid { grid-template-columns: 1fr 1fr; }
    .ipb-loc-grid { grid-template-columns: 1fr 1fr; }
    .ipb-day { min-height: 46px; font-size: .96rem; }
    .ipb-steps { padding: 14px 22px; }
}

@media (min-width: 900px) {
    .ipb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 296px; }
    .ipb-main { border-right: 1px solid var(--ipb-line-soft); }

    .ipb-aside {
        display: block;
        padding: 24px 22px;
        background: var(--ipb-surface-alt);
    }
    .ipb-aside-inner { position: sticky; top: 24px; }
    .ipb-aside h4 {
        margin: 0 0 12px;
        font-size: .74rem;
        text-transform: uppercase;
        letter-spacing: .07em;
        color: var(--ipb-faint);
        font-weight: 700;
    }

    .ipb-sum-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--ipb-line); }
    .ipb-sum-item:last-of-type { border-bottom: 0; }
    .ipb-sum-ico { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 1px solid var(--ipb-line); display: grid; place-items: center; color: var(--ipb-navy); }
    .ipb-sum-ico svg { width: 14px; height: 14px; }
    .ipb-sum-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ipb-faint); font-weight: 700; }
    .ipb-sum-v { font-size: .86rem; font-weight: 600; color: var(--ipb-ink); overflow-wrap: anywhere; }
    .ipb-sum-v small { display: block; margin-top: 2px; font-size: .76rem; font-weight: 500; color: var(--ipb-muted); }
    .ipb-sum-v.is-empty { color: #b3bac4; font-weight: 500; font-style: italic; }

    .ipb-sum-total {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 2px solid var(--ipb-line);
        display: flex;
        align-items: baseline;
        justify-content: space-between;
    }
    .ipb-sum-total span { font-size: .8rem; font-weight: 700; color: var(--ipb-muted); }
    .ipb-sum-total strong { font-size: 1.2rem; color: var(--ipb-navy); }

    .ipb-mobilebar { display: none; }
    .ipb-slots { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .ipb-booking *,
    .ipb-booking *::before,
    .ipb-booking *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .ipb-steps, .ipb-actions, .ipb-mobilebar, .ipb-aside { display: none !important; }
    .ipb-shell { box-shadow: none; border-color: #000; }
}
