/* Keep the main booking column first and give tablet layouts room to breathe. */
body .sbs-booking-container .sbs-booking-layout > .sbs-booking-main {
  order:0 !important; grid-column:1; grid-row:1; min-width:0;
}
body .sbs-booking-container .sbs-booking-layout > .sbs-booking-sidebar {
  order:1 !important; grid-column:2; grid-row:1; min-width:0;
}
@media (min-width:1101px) {
  body .sbs-booking-container .sbs-booking-layout {
    grid-template-columns:minmax(0,1fr) minmax(280px,330px) !important;
  }
}
@media (max-width:1100px) {
  body .sbs-booking-container .sbs-booking-layout {
    grid-template-columns:minmax(0,1fr) !important;
  }
  body .sbs-booking-container .sbs-booking-layout > .sbs-booking-sidebar {
    grid-column:1; grid-row:2; position:static !important; width:100%;
  }
  body .sbs-booking-container .sbs-progress-bar { flex-wrap:wrap; max-width:100%; }
}
@media (min-width:901px) and (max-width:1100px) {
  body .sbs-booking-container .sbs-booking-layout { gap:20px !important; }
  body .sbs-booking-container .sbs-booking-sidebar .sbs-step-accordion { display:none !important; }
}
/* Halve the two outer gutters on phones, including Brizy shortcode pages. */
@media (max-width:640px) {
  body .brz-container:has(> .brz-wrapper > .brz-wp-shortcode .sbs-booking-container) {
    border-inline-width:4px !important;
  }
  body .sbs-booking-container,
  body.sbs-booking-immersive .sbs-booking-container { padding-inline:5.5px !important; }
}


/* One divider per section in the mobile appointment drawer. */
html body #sbs-mobile-drawer .sbs-drawer-detail-row,
html body #sbs-mobile-drawer .sbs-drawer-appt-row {
 border:0!important; box-shadow:none!important; gap:12px;
}
html body #sbs-mobile-drawer .sbs-drawer-detail-row + .sbs-drawer-detail-row,
html body #sbs-mobile-drawer .sbs-drawer-appt-row + .sbs-drawer-appt-row {
 border-top:1px solid var(--yatoon-scheme-border,#e5e7eb)!important;
}
html body #sbs-mobile-drawer .sbs-drawer-detail-row > div:first-child {min-width:0; overflow-wrap:anywhere;}
html body #sbs-mobile-drawer .sbs-drawer-detail-row > div:last-child:not(:first-child) {flex-shrink:0;}
html body #sbs-mobile-drawer .sbs-drawer-footer {
 position:relative; border:0!important; margin-top:0!important; padding-top:18px!important; gap:16px;
}
html body #sbs-mobile-drawer .sbs-drawer-footer::before {
 content:""; position:absolute; inset-inline:16px; top:0; height:1px;
 background:var(--yatoon-scheme-border,#e5e7eb);
}
html body #sbs-mobile-drawer .sbs-checkout-totals {
 display:grid; gap:10px; border:0!important; box-shadow:none!important;
 margin:0 0 16px!important; padding:0!important; background:transparent!important;
}
html body #sbs-mobile-drawer :is(.sbs-checkout-total-primary,.sbs-checkout-total-duration) {
 display:flex!important; align-items:baseline; justify-content:space-between; gap:16px;
 margin:0!important; padding:0!important; border:0!important; line-height:1.5;
}
html body #sbs-mobile-drawer .sbs-checkout-total-primary {font-size:17px; font-weight:700;}
html body #sbs-mobile-drawer .sbs-checkout-total-duration {font-size:13px; color:var(--yatoon-scheme-muted,#64748b);}
html body #sbs-mobile-drawer :is(.sbs-checkout-total-primary,.sbs-checkout-total-duration) > :first-child {min-width:0; overflow-wrap:anywhere;}
html body #sbs-mobile-drawer :is(.sbs-checkout-total-primary,.sbs-checkout-total-duration) > :last-child {flex-shrink:0; text-align:end; font-variant-numeric:tabular-nums;}
html body #sbs-mobile-drawer :is(#sbs-drawer-checkout-btn,#sbs-drawer-review-btn) {
 display:block; width:100%; margin-top:12px; min-height:44px; padding:12px!important;
 border-radius:10px!important; font-size:14px; font-weight:700; cursor:pointer;
 background:var(--yatoon-scheme-surface-raised,#f1f5f9)!important;
 color:var(--yatoon-scheme-text,#111827)!important;
 border:1px solid var(--yatoon-scheme-border,#e5e7eb)!important;
}
