/*
 * SI Booking UX styles. Loaded only on booking-flow pages (body.sibux-flow): course pages with
 * dates, the "Who's coming?" page, and the basket and checkout when they hold an experience day.
 *
 * Colour choices (contrast ratios measured, WCAG 2.2 AA):
 *   Form boxes are light (cream #faf6f0, dark text #1a1410, 16.9:1) on the dark panels (17:1 between
 *   box and panel), as Mike asked for more contrast. Box border #7d6e61 is 4.6:1 against the box
 *   (1.4.11 needs 3:1). Same look as the Stripe card box, which can only be light.
 *   Orange buttons use dark text: #0c0a09 on #f97415 is 7.1:1 (white was 3.4:1).
 *   Error text on dark #ff8f80 is 8.3:1; error border on a cream box #c2321f is 5.2:1.
 *   Focus ring: 3px orange, drawn 2px outside the box so it sits on the dark panel (6.6:1).
 *
 * The theme styles checkout boxes through --si-field-* variables, so those are overridden here.
 */

html body.sibux-flow {
  --sx-page: #0c0a09;
  --sx-panel: #171311;
  --sx-panel2: #1f1a17;
  --sx-line: #3a322b;
  --sx-ink: #f1ebe4;
  --sx-label: #e6d3bb;
  --sx-mute: #b8a996;
  --sx-field: #faf6f0;
  --sx-field-ink: #1a1410;
  --sx-field-line: #7d6e61;
  --sx-ph: #6b5f55;
  --sx-orange: #f97415;
  --sx-orange-2: #ff9a3d;
  --sx-orange-ink: #0c0a09;
  --sx-ok: #8fc27e;
  --sx-err: #ff8f80;
  --sx-err-field: #c2321f;
  --sx-err-bg: #2a1412;
}

html body.sibux-flow,
html body.sibux-flow.woocommerce-checkout,
html body.sibux-flow.woocommerce-cart,
html body.sibux-flow form.checkout {
  --si-field-bg: var(--sx-field);
  --si-field-bg-hover: #ffffff;
  --si-field-border: var(--sx-field-line);
  --si-field-border-focus: var(--sx-orange);
  --si-field-text: var(--sx-field-ink);
  --si-field-muted: var(--sx-label);
  --si-field-radius: 8px;
  --si-field-h: 50px;
}

.sibux .screen-reader-text,
.sibux-flow .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ------------------------------------------------------------------ Step bar (UX 16) */
.sibux-steps { margin: 0 0 20px; }
.sibux-steps ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--sx-mute); }
.sibux-steps li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.sibux-steps li::before { display: none !important; }
.sibux-steps li + li { padding-left: 30px; position: relative; }
.sibux-steps li + li > .sibux-steps__dot { margin-left: 0; }
.sibux-steps li + li::before { content: "" !important; display: block !important; position: absolute; left: 4px; top: 50%; width: 20px; height: 1px; background: var(--sx-line); }
.sibux-steps__dot { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--sx-field-line); font-size: 12px; font-weight: 700; color: var(--sx-mute); flex: none; }
.sibux-steps .is-on { color: var(--sx-ink); font-weight: 600; }
.sibux-steps .is-on .sibux-steps__dot { background: var(--sx-orange); border-color: var(--sx-orange); color: var(--sx-orange-ink); }
.sibux-steps .is-done .sibux-steps__dot { background: #2d4a2a; border-color: var(--sx-ok); color: var(--sx-ok); }
#wed-booking .sibux-steps { margin: -8px 0 18px; }

/* ------------------------------------------------------------------ Buttons and links */
.sibux-btn,
html body.sibux-flow .wed-book-btn,
html body.sibux-flow .sidn-btn,
html body.sibux-flow #place_order {
  color: var(--sx-orange-ink) !important;
}
.sibux-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: 8px;
  background: var(--sx-orange); font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.sibux-btn:hover { background: var(--sx-orange-2); }
.sibux-btn:focus-visible, .sibux-linkbtn:focus-visible, .sibux-remove:focus-visible,
.sibux-chip__change:focus-visible, .sibux-sum__toggle:focus-visible {
  outline: 3px solid var(--sx-orange); outline-offset: 2px;
}
.sibux-btn--block { width: 100%; min-height: 56px; font-size: 18px; }
.sibux-btn--ghost { background: transparent; color: var(--sx-ink) !important; border: 1.5px solid var(--sx-field-line); }
.sibux-btn--ghost:hover { background: var(--sx-panel2); }
.sibux-btn[disabled] { opacity: .7; cursor: progress; }
.sibux-linkbtn { background: none; border: 0; padding: 4px 0; color: var(--sx-orange); font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

html body.sibux-flow .wed-book-btn { font-size: 15px; }
@media (min-width: 721px) { html body.sibux-flow .wed-list .wed-row { grid-template-columns: minmax(0, 1fr) auto; } html body.sibux-flow .wed-book-btn { white-space: nowrap; } }
@media (max-width: 720px) { html body.sibux-flow .wed-form { flex-wrap: wrap; } html body.sibux-flow .wed-form .wed-book-btn { flex: 1 1 100%; min-height: 50px; } }
html body.sibux-flow #wed-booking { scroll-margin-top: 150px; }
.wed-notify-link { color: var(--sx-orange); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }

/* ------------------------------------------------------------------ Panels */
.sibux-panel { background: var(--sx-panel); border: 1px solid var(--sx-line); border-radius: 14px; padding: 20px 22px; margin: 0 0 18px; color: var(--sx-ink); }
.sibux-notice p { margin: 0 0 12px; font-size: 16px; }

/* ------------------------------------------------------------------ "Who's coming?" page */
.sibux-book { max-width: 760px; margin: 0 auto; color: var(--sx-ink); font-size: 16px; line-height: 1.5; }
.sibux-chip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; }
.sibux-chip p { margin: 0; }
.sibux-chip__course { font-weight: 700; font-size: 18px; }
.sibux-chip__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--sx-mute); font-size: 15px; }
.sibux-chip__meta b { color: var(--sx-ink); }
.sibux-chip__change { color: var(--sx-orange); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.sibux-person { position: relative; background: var(--sx-panel); border: 1px solid var(--sx-line); border-radius: 14px; padding: 18px 20px 6px; margin: 0 0 16px; min-width: 0; }
.sibux-person legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; font-size: 18px; font-weight: 700; color: var(--sx-ink); }
.sibux-person > .sibux-f, .sibux-person > .sibux-row2, .sibux-person > .sibux-u18note { clear: both; }
.sibux-book [hidden], .sibux-flow .sibux-errsum[hidden] { display: none !important; }
.sibux-legend-sub { font-weight: 500; color: var(--sx-mute); font-size: 15px; }
.sibux-remove { position: absolute; top: 14px; right: 14px; min-height: 40px; padding: 0 12px; background: transparent; color: var(--sx-label); border: 1px solid var(--sx-line); border-radius: 8px; font: inherit; font-size: 14px; cursor: pointer; }
.sibux-remove:hover { border-color: var(--sx-field-line); color: var(--sx-ink); }

.sibux-f { margin: 0 0 16px; min-width: 0; }
.sibux-f label { display: block; margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--sx-label); }
.sibux-opt { font-weight: 400; color: var(--sx-mute); }
.sibux-hint { display: block; margin: -2px 0 8px; color: var(--sx-mute); font-size: 14px; }
.sibux-row2 { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 0 16px; align-items: end; }
.sibux-f input {
  display: block; width: 100%; height: 50px; margin: 0; padding: 0 14px;
  background: var(--sx-field); color: var(--sx-field-ink); border: 1.5px solid var(--sx-field-line); border-radius: 8px;
  font: inherit; font-size: 16px; box-shadow: none;
}
.sibux-f input::placeholder { color: var(--sx-ph); }
.sibux-f input:focus { outline: 3px solid var(--sx-orange); outline-offset: 2px; border-color: var(--sx-field-line); }
.sibux-f.is-error input { border-color: var(--sx-err-field); border-width: 2px; }
.sibux-emsg, html body .sibux-emsg { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; color: var(--sx-err) !important; font-style: normal; font-size: 15px; font-weight: 600; }
.sibux-emsg::before { content: "!"; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--sx-err); color: #1a0b09; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.sibux-emsg[hidden] { display: none; }
.sibux-u18note { margin: -6px 0 12px; }
.sibux-u18, .sibux-flow .sibux-u18 { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #5a1f17; color: #ffd0c8; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.sibux-add { margin: 0 0 18px; }
.sibux-add .sibux-hint { margin: 8px 0 0; }
.sibux-note { color: var(--sx-mute); font-size: 15px; margin: 0 0 14px; }

html body .sibux-errsum, .sibux-f input, html body.sibux-checkout form.checkout .input-text { scroll-margin-top: 150px; }
.sibux-errsum { border: 2px solid var(--sx-err); background: var(--sx-err-bg); border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; color: var(--sx-ink); }
.sibux-errsum:focus { outline: 3px solid var(--sx-orange); outline-offset: 2px; }
.sibux-errsum h2 { font-size: 18px; margin: 0 0 6px; color: #ffd7d0; font-family: inherit; }
.sibux-errsum ul { margin: 0; padding: 0; list-style: none; }
.sibux-errsum li { margin: 0; padding: 0; }
.sibux-errsum li::before { display: none !important; }
html body .sibux-errsum a { color: var(--sx-err) !important; font-weight: 600; font-size: 15px; line-height: 1.9; text-decoration: underline; }
.sibux-errsum[hidden] { display: none; }

@media (max-width: 600px) {
  .sibux-row2 { grid-template-columns: minmax(0, 1fr) 110px; gap: 0 12px; }
  .sibux-person { padding: 16px 14px 4px; }
}

/* ------------------------------------------------------------------ Basket (UX 6, 13) */
.sibux-fixed-qty { font-weight: 700; color: var(--sx-ink); white-space: nowrap; }
.sibux-change-people, .sibux-sum__change { display: inline-block; margin-top: 4px; color: var(--sx-orange); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.sibux-people { list-style: none; margin: 4px 0 0; padding: 0; }
html body .sibux-people li { margin: 0; padding: 0 !important; color: inherit; font-size: 15px; }
.sibux-people li::before { display: none !important; }
.sibux-age { color: var(--sx-mute); }

/* ------------------------------------------------------------------ Checkout: boxes (UX 3, 10) */
html body.sibux-checkout form.checkout input.input-text,
html body.sibux-checkout form.checkout select,
html body.sibux-checkout form.checkout textarea,
html body.sibux-checkout .woocommerce-form-coupon .input-text,
html body.sibux-checkout .woocommerce-form-login .input-text,
html body.sibux-checkout #pwgc-redeem-gift-card-number {
  background: var(--sx-field) !important;
  color: var(--sx-field-ink) !important;
  border: 1.5px solid var(--sx-field-line) !important;
  border-radius: 8px;
  font-size: 16px !important;
  min-height: 50px;
  box-shadow: none;
}
html body.sibux-checkout form.checkout input.input-text:hover,
html body.sibux-checkout form.checkout textarea:hover { background: #fff !important; border-color: #5c4f44 !important; }
html body.sibux-checkout form.checkout input.input-text:focus,
html body.sibux-checkout form.checkout select:focus,
html body.sibux-checkout form.checkout textarea:focus,
html body.sibux-checkout .woocommerce-form-coupon .input-text:focus,
html body.sibux-checkout #pwgc-redeem-gift-card-number:focus {
  outline: 3px solid var(--sx-orange) !important; outline-offset: 2px; box-shadow: none !important; border-color: var(--sx-field-line) !important;
}
html body.sibux-checkout form.checkout input::placeholder,
html body.sibux-checkout form.checkout textarea::placeholder { color: var(--sx-ph) !important; }
html body.sibux-checkout form.checkout label { font-size: 16px; color: var(--sx-label); }
html body.sibux-checkout form.checkout .required { color: var(--sx-label); }
html body.sibux-checkout form.checkout .optional { color: var(--sx-mute); font-size: 14px; }
html body.sibux-checkout form.checkout .description { display: block; color: var(--sx-mute); font-size: 14px; margin: 6px 0 0; position: static; background: none; padding: 0; }
html body.sibux-checkout form.checkout .woocommerce-invalid input.input-text,
html body.sibux-checkout form.checkout .woocommerce-invalid select { border-color: var(--sx-err-field) !important; border-width: 2px !important; box-shadow: none !important; }
html body.sibux-checkout form.checkout .woocommerce-validated input.input-text { border-color: var(--sx-field-line) !important; }
html body.sibux-checkout form.checkout .sibux-emsg { margin: 0 0 8px; }
/* WooCommerce's own inline message would repeat ours. */
html body.sibux-checkout form.checkout .sibux-invalid .checkout-inline-error-message { display: none; }
html body.sibux-checkout form.checkout .checkout-inline-error-message { color: var(--sx-err); font-size: 15px; font-weight: 600; margin: 6px 0 0; }

html body.sibux-checkout .sibux-hidden-field { display: none !important; }
html body.sibux-checkout.sibux-has-chip #billing_full_name_field,
html body.sibux-checkout.sibux-has-chip #billing_email_field,
html body.sibux-checkout.sibux-has-chip #billing_phone_field { display: none; }

/* Main contact line (UX 7) */
.sibux-details-chip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; background: var(--sx-panel2); border: 1px solid var(--sx-line); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; font-size: 15px; color: var(--sx-ink); }
.sibux-details-chip p { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.sibux-details-chip__label { color: var(--sx-mute); width: 100%; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.sibux-details-chip[hidden] { display: none; }

/* ------------------------------------------------------------------ Checkout: calm (UX 11) */
.sibux-codes { margin: 0 0 12px; }
html body.sibux-checkout:not(.sibux-codes-open) .woocommerce-form-login-toggle,
html body.sibux-checkout:not(.sibux-codes-open) .woocommerce-form-coupon-toggle,
html body.sibux-checkout:not(.sibux-codes-open) form.checkout_coupon,
html body.sibux-checkout:not(.sibux-codes-open) form.woocommerce-form-login,
html body.sibux-checkout:not(.sibux-codes-open) #pwgc-redeem-gift-card-form { display: none !important; }
html body.sibux-checkout .woocommerce-form-login-toggle .woocommerce-info,
html body.sibux-checkout .woocommerce-form-coupon-toggle .woocommerce-info { font-size: 15px; margin-bottom: 10px; }
html body.sibux-checkout .woocommerce-account-fields { display: none; }

/* ------------------------------------------------------------------ Checkout: layout (UX 8) */
html body.sibux-checkout .si-content-block__text { max-width: 100%; }
html body.sibux-checkout #customer_details { display: block; }
html body.sibux-checkout #customer_details .col-1,
html body.sibux-checkout #customer_details .col-2 { float: none; width: 100%; margin: 0 0 18px; background: var(--sx-panel); border-color: var(--sx-line); }
html body.sibux-checkout #order_review { display: contents; }
html body.sibux-checkout .woocommerce-checkout-review-order-table { margin: 0 0 18px; }
/* Date and people are in the booking summary just above, so not repeated in the price table. */
html body.sibux-checkout .woocommerce-checkout-review-order-table .variation-ExperienceDate,
html body.sibux-checkout .woocommerce-checkout-review-order-table .variation-People { display: none; }
.sibux-cart-hold { margin: 0 0 16px; }

.sibux-sum { background: var(--sx-panel); border: 1px solid var(--sx-line); border-radius: 14px; padding: 18px 20px; margin: 0 0 18px; color: var(--sx-ink); }
.sibux-sum__title { font-size: 20px; margin: 0 0 12px; }
.sibux-sum__line { padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid var(--sx-line); }
.sibux-sum__line p { margin: 0; }
.sibux-sum__course { font-weight: 700; }
.sibux-sum__date { color: var(--sx-mute); font-size: 15px; }
.sibux-sum__total { display: flex; justify-content: space-between; font-size: 18px; margin: 0 0 12px; }
.sibux-sum__total b { color: var(--sx-ink); }
.sibux-sum__toggle { display: none; }
.sibux-sum .wed-hold-slot:empty { display: none; }

@media (min-width: 981px) {
  html body.sibux-checkout form.checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas:
      "err err"
      "details sum"
      "details head"
      "details review"
      "pay .";
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: 36px;
    align-items: start;
  }
  html body.sibux-checkout form.checkout > * { grid-column: 1; }
  html body.sibux-checkout form.checkout > #sibux-co-errsum { grid-area: err; }
  html body.sibux-checkout form.checkout > #customer_details { grid-area: details; }
  html body.sibux-checkout form.checkout > .sibux-sum { grid-area: sum; }
  html body.sibux-checkout form.checkout > #order_review_heading { grid-area: head; margin-top: 0; }
  html body.sibux-checkout form.checkout .woocommerce-checkout-review-order-table { grid-area: review; }
  html body.sibux-checkout form.checkout #payment { grid-area: pay; }
}

@media (max-width: 980px) {
  html body.sibux-checkout form.checkout { display: flex !important; flex-direction: column; }
  html body.sibux-checkout #sibux-co-errsum { order: 0; }
  html body.sibux-checkout .sibux-sum { order: 1; padding: 0; overflow: hidden; }
  html body.sibux-checkout #customer_details { order: 2; }
  html body.sibux-checkout #order_review_heading { order: 3; }
  html body.sibux-checkout .woocommerce-checkout-review-order-table { order: 4; }
  html body.sibux-checkout #payment { order: 5; }
  .sibux-sum__toggle {
    display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px;
    min-height: 52px; padding: 12px 16px; background: transparent; border: 0; color: var(--sx-ink); font: inherit; font-size: 16px; text-align: left; cursor: pointer;
  }
  .sibux-sum__toggle-label { color: var(--sx-orange); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
  .sibux-sum__toggle-label::after { content: " ▾"; text-decoration: none; display: inline-block; }
  .sibux-sum.is-open .sibux-sum__toggle-label::after { content: " ▴"; }
  .sibux-sum__body { display: none; padding: 0 16px 6px; }
  .sibux-sum.is-open .sibux-sum__body { display: block; }
  .sibux-sum .wed-hold-slot { padding: 0 12px 12px; }
}

/* ------------------------------------------------------------------ Checkout: paying (UX 10, 12) */
html body.sibux-checkout #payment { border-top: 0; margin-top: 0; padding-top: 0; }
html body.sibux-checkout #payment ul.payment_methods > li { background: var(--sx-panel); border-color: var(--sx-line); padding: 16px; }
html body.sibux-checkout #payment ul.payment_methods label { font-size: 16px; color: var(--sx-ink); }
/* The card box: a light panel so Stripe's card field (dark text, can't be restyled here) sits naturally. */
html body.sibux-checkout #payment .payment_box {
  background: var(--sx-field); color: var(--sx-field-ink); border: 1px solid var(--sx-field-line); border-radius: 12px; font-size: 15px; padding: 16px;
}
html body.sibux-checkout #payment .payment_box p,
html body.sibux-checkout #payment .payment_box label,
html body.sibux-checkout #payment .payment_box .cpsw-test-description { color: var(--sx-field-ink) !important; }
html body.sibux-checkout #payment .payment_box a { color: #8a3b00; }
html body.sibux-checkout .cpsw-stripe-elements-form .StripeElement {
  background: #fff !important; border: 1.5px solid var(--sx-field-line) !important; border-radius: 8px !important; min-height: 50px;
}
html body.sibux-checkout .cpsw-stripe-elements-form .StripeElement--focus { outline: 3px solid var(--sx-orange); outline-offset: 2px; }
html body.sibux-checkout .cpsw-stripe-elements-form .StripeElement--invalid { border-color: var(--sx-err-field) !important; border-width: 2px !important; }
html body.sibux-checkout .cpsw-stripe-error { color: #a3200f; font-weight: 600; }
html body.sibux-checkout #place_order {
  display: flex; width: 100%; min-height: 58px; font-size: 19px; font-weight: 700; border-radius: 8px;
}
html body.sibux-checkout #place_order:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sibux-trust { list-style: none; margin: 14px 0 6px; padding: 0; color: var(--sx-mute); font-size: 14px; }
.sibux-trust li { margin: 0 0 4px; padding: 0 0 0 22px; position: relative; }
.sibux-trust li::before { content: "✓" !important; display: block !important; position: absolute; left: 0; top: 0; color: var(--sx-ok); font-weight: 700; background: none !important; width: auto; height: auto; }
.sibux-terms { color: var(--sx-mute); font-size: 14px; margin: 0; }
.sibux-terms a { color: var(--sx-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ Nothing floating over fields (UX 5) */
html body.sibux-flow.woocommerce-cart .ht-ctc,
html body.sibux-flow.woocommerce-checkout .ht-ctc,
html body.sibux-book-page .ht-ctc { display: none !important; }

/* Basket coupon box: keep it one line tall on phones (the theme's flex size made it very tall once visible). */
html body.sibux-flow.woocommerce-cart table.cart td.actions .coupon .input-text { flex: 0 0 auto; height: 50px; min-height: 50px; }
@media (min-width: 561px) { html body.sibux-flow.woocommerce-cart table.cart td.actions .coupon .input-text { flex: 1 1 220px; } }

/* ------------------------------------------------------------------ Account after paying (UX 11) */
.sibux-account { max-width: 620px; margin: 28px 0; }
html body .sibux-account h2 { font-size: 22px; margin: 0 0 8px; color: var(--sx-ink); }
html body .sibux-account p { color: var(--sx-mute); font-size: 16px; margin: 0 0 14px; }
.sibux-account .sibux-f { margin-bottom: 14px; }
.sibux-pw { display: flex; gap: 8px; }
.sibux-pw input { flex: 1 1 auto; }
.sibux-pw__toggle { flex: none; min-width: 72px; min-height: 50px; padding: 0 14px; background: transparent; color: var(--sx-ink); border: 1.5px solid var(--sx-field-line); border-radius: 8px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.sibux-pw__toggle:focus-visible { outline: 3px solid var(--sx-orange); outline-offset: 2px; }
html body .sibux-account p.sibux-account__done { color: var(--sx-ink); font-weight: 600; margin: 12px 0 0; }
html body .sibux-account p.sibux-account__done:empty { display: none; }
html body .sibux-account__done a { color: var(--sx-orange); }
html body .sibux .sibux-f label, html body .sibux-account .sibux-f label { font-size: 16px; font-weight: 600; color: var(--sx-label); }

/* ------------------------------------------------------------------ Step 4: safety forms after paying */
.sibux-sign { max-width: 720px; margin: 22px 0 28px; }
.sibux-sign.is-done { border-color: var(--sx-ok); }
html body .sibux-sign h2 { font-size: 22px; margin: 0 0 8px; color: var(--sx-ink); }
html body .sibux-sign p { color: var(--sx-mute); font-size: 16px; margin: 0 0 12px; }
html body .sibux-sign .sibux-sign__progress { color: var(--sx-ink); font-weight: 600; }
.sibux-sign__list { list-style: none; margin: 0 0 12px; padding: 0; }
html body .sibux-sign__list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 0 !important; margin: 0; border-top: 1px solid var(--sx-line); }
html body .sibux-sign__list li::before { display: none !important; }
.sibux-sign__who { flex: 1 1 260px; min-width: 0; }
.sibux-sign__name { font-weight: 700; color: var(--sx-ink); font-size: 17px; }
.sibux-sign__note { display: block; color: var(--sx-mute); font-size: 14px; margin-top: 2px; }
.sibux-sign__item.is-signed .sibux-sign__note { color: var(--sx-ok); font-weight: 600; }
.sibux-sign__tick { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #2d4a2a; color: var(--sx-ok); font-weight: 800; font-size: 18px; }
.sibux-sign__btn { min-height: 48px; }
@media (max-width: 600px) { .sibux-sign__btn { width: 100%; } }
html body .sibux-sign .sibux-sign__later { font-size: 14px; margin: 4px 0 0; }
html body .sibux-sign a.sibux-sign__btn { text-decoration: none; color: var(--sx-orange-ink) !important; }
/* Four steps on a phone: tighter so they fit on one line. */
@media (max-width: 480px) {
  .sibux-steps ol { font-size: 13px; gap: 6px 2px; }
  .sibux-steps li + li { padding-left: 16px; }
  .sibux-steps li + li::before { width: 10px !important; left: 3px; }
  .sibux-steps__dot { width: 22px; height: 22px; font-size: 11px; }
  .sibux-steps li { gap: 5px; }
}

/* 1.4.0: the sign step can't be missed: popup on arrival and a bar while forms are unsigned */
.sibux-signpop { border: 0; border-radius: 16px; padding: 28px 24px 20px; max-width: 460px; width: calc(100% - 32px); background: var(--sx-panel); color: var(--sx-ink); box-shadow: 0 24px 60px rgba(0,0,0,.6); text-align: center; }
.sibux-signpop::backdrop { background: rgba(0,0,0,.7); }
.sibux-signpop__tick { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--sx-orange); color: var(--sx-orange-ink); font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
html body .sibux-signpop__kicker { color: var(--sx-label); font-weight: 700; margin: 0 0 4px; font-size: 15px; }
html body .sibux-signpop h2 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; color: var(--sx-ink); }
html body .sibux-signpop p { color: var(--sx-mute); font-size: 16px; margin: 0 0 12px; }
html body .sibux-signpop__list { list-style: none; margin: 0 0 16px; padding: 0; }
html body .sibux-signpop__list li { padding: 6px 0 !important; color: var(--sx-ink); font-weight: 600; border-top: 1px solid var(--sx-line); }
html body .sibux-signpop__list li::before { display: none !important; }
html body .sibux-signpop a.sibux-signpop__go { display: flex; width: 100%; justify-content: center; text-decoration: none; color: var(--sx-orange-ink) !important; min-height: 52px; font-size: 17px; }
.sibux-signpop__later { margin-top: 10px; background: none; border: 0; color: var(--sx-mute); text-decoration: underline; font: inherit; font-size: 15px; cursor: pointer; padding: 10px; min-height: 44px; }
.sibux-signbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--sx-panel); border-top: 2px solid var(--sx-orange); color: var(--sx-ink); box-shadow: 0 -8px 24px rgba(0,0,0,.45); }
.sibux-signbar .sibux-btn { min-height: 44px; text-decoration: none; color: var(--sx-orange-ink) !important; white-space: nowrap; }
.sibux-signbar__sub { color: var(--sx-mute); font-size: 14px; }
body:has(.sibux-signbar) { padding-bottom: 76px; }
@media (min-width: 900px) { .sibux-signbar { left: auto; right: 24px; bottom: 24px; border: 2px solid var(--sx-orange); border-radius: 14px; } }
