/* ══════════════════════════════════════════════════════════════
   Barber Booking Pro — Frontend v5.0
   Clean • Premium • Fully Responsive
   ══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables (overridden by PHP inline style) ─── */
.bbp-wrap {
  --p:          #1C1C1C;
  --a:          #c68001;
  --a2:         #d4900a;
  --bg:         #141414;
  --card:       #1f1f1f;
  --card2:      #252525;
  --txt:        #f0f0f0;
  --muted:      #7a7a7a;
  --border:     rgba(255,255,255,.08);
  --border2:    rgba(255,255,255,.14);
  --success:    #22c55e;
  --danger:     #ef4444;
  --r:          14px;
  --r-sm:       9px;
  --shadow:     0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04);
  --inp-bg:     #1f1f1f;
  --inp-txt:    #f0f0f0;
  --inp-ph:     rgba(240,240,240,.32);
  --inp-bd:     rgba(255,255,255,.1);
  --inp-focus:  #c68001;
}

/* ─── Reset ─── */
.bbp-wrap *, .bbp-wrap *::before, .bbp-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }
.bbp-wrap button, .bbp-wrap input, .bbp-wrap textarea, .bbp-wrap select { font-family: inherit; }

/* ═══════════════════════════════════
   OUTER WRAPPER
   ═══════════════════════════════════ */
.bbp-wrap {
  max-width: 700px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--txt);
  background: var(--bg);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

/* ═══════════════════════════════════
   STEP PROGRESS HEADER
   ═══════════════════════════════════ */
.bbp-header {
  background: var(--p);
  position: relative;
}

.bbp-bar {
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  background: var(--a);
  transition: width .5s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 10px var(--a);
}

.bbp-steps {
  display: flex;
  padding: 16px 20px 0;
  position: relative;
  overflow: hidden;
}

/* connecting line */
.bbp-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 46px; right: 46px;
  height: 1px;
  background: rgba(255,255,255,.08);
}

.bbp-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  padding-bottom: 14px;
}

.bbp-step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.3);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s ease;
  position: relative;
}

.bbp-step-lbl {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,.28);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  transition: color .25s;
  white-space: nowrap;
}

.bbp-step.active .bbp-step-dot {
  background: var(--a);
  border-color: var(--a);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(198,128,1,.18), 0 3px 12px rgba(198,128,1,.5);
}
.bbp-step.active .bbp-step-lbl { color: rgba(255,255,255,.85); }

.bbp-step.done .bbp-step-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.bbp-step.done .bbp-step-lbl { color: rgba(255,255,255,.4); }

/* ─── Summary chips ─── */
.bbp-summary {
  display: none;
  background: var(--p);
  padding: 8px 20px 14px;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.bbp-summary[hidden] { display: none !important; }

.bbp-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.bbp-chip {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
}

.bbp-total {
  font-size: 20px; font-weight: 900;
  color: var(--a);
  letter-spacing: -.02em;
  flex-shrink: 0;
}

/* ═══════════════════════════════════
   PANELS
   ═══════════════════════════════════ */
.bbp-body { background: var(--bg); }

.bbp-panel { display: none; }
.bbp-panel.bbp-active {
  display: block;
  animation: bbpIn .22s ease;
}

@keyframes bbpIn {
  from { opacity:0; transform:translateY(6px); }
  to   { opacity:1; transform:translateY(0); }
}

.bbp-phead {
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--border);
}

.bbp-phead h2 {
  font-size: 18px; font-weight: 800;
  color: var(--txt); letter-spacing: -.02em;
  margin-bottom: 3px;
}
.bbp-phead p { font-size: 13px; color: var(--muted); }

.bbp-pcontent { padding: 18px 22px 14px; }

/* ═══════════════════════════════════
   STEP 1 — SERVICES
   ═══════════════════════════════════ */
.bbp-svc-list { display: flex; flex-direction: column; gap: 8px; }

.bbp-svc {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bbp-svc::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--svc-color, var(--a));
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}

.bbp-svc:hover {
  border-color: var(--a);
  background: var(--card2);
  transform: translateX(2px);
}

.bbp-svc.sel {
  border-color: var(--a) !important;
  background: rgba(198,128,1,.08) !important;
}
.bbp-svc.sel .bbp-svc-check { opacity:1; transform:scale(1); }

.bbp-svc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--card2);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  overflow: hidden;
}

.bbp-svc-color-dot {
  width: 100%; height: 100%;
  background: var(--svc-color, var(--a));
  opacity: .35;
}

.bbp-svc-info { flex: 1; min-width: 0; }

.bbp-svc-name {
  font-size: 14px; font-weight: 700;
  color: var(--txt); margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.bbp-svc-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted);
}

.bbp-svc-dur { display: flex; align-items: center; gap: 4px; }

.bbp-svc-price {
  font-size: 15px; font-weight: 800;
  color: var(--txt); flex-shrink: 0;
}

.bbp-svc-check {
  width: 22px; height: 22px;
  background: var(--a); border-radius: 50%;
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  opacity: 0; transform: scale(.4);
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
}

/* ═══════════════════════════════════
   STEP 2 — STAFF
   ═══════════════════════════════════ */
.bbp-barbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bbp-barber {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px 12px 12px;
  cursor: pointer;
  text-align: center;
  transition: all .15s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bbp-barber:hover {
  border-color: var(--a);
  background: var(--card2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.bbp-barber.sel {
  border-color: var(--a) !important;
  background: rgba(198,128,1,.08) !important;
}
.bbp-barber.sel .bbp-barber-ck { opacity:1; transform:scale(1); }
.bbp-barber.sel .bbp-avatar     { border-color: var(--a); }

.bbp-barber-ck {
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px;
  background: var(--a); border-radius: 50%;
  color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.4);
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
}

.bbp-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2px solid var(--border2);
  background: var(--card2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: var(--a);
  overflow: hidden;
  transition: border-color .15s;
}
.bbp-avatar img { width:100%; height:100%; object-fit:cover; display:block; }

.bbp-barber-name {
  font-size: 13px; font-weight: 700;
  color: var(--txt); line-height: 1.3;
}
.bbp-barber-role { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ═══════════════════════════════════
   STEP 3 — DATE & TIME
   ═══════════════════════════════════ */

/* Month nav */
.bbp-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bbp-month-lbl {
  font-size: 14px; font-weight: 700;
  color: var(--txt);
}

.bbp-nav-btn {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--txt);
  font-size: 16px;
  transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.bbp-nav-btn:hover:not(:disabled) { background: var(--a); border-color: var(--a); color: #fff; }
.bbp-nav-btn:disabled { opacity: .25; cursor: not-allowed; }

/* Scrollable date row */
.bbp-dates-outer {
  position: relative;
  margin: 0 -2px;
}

/* fade hints */
.bbp-dates-outer::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 32px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

.bbp-dates {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 4px 10px;
}
.bbp-dates::-webkit-scrollbar { display: none; }

.bbp-date {
  flex: 0 0 54px;
  display: flex; flex-direction: column; align-items: center;
  gap: 3px;
  padding: 10px 6px 8px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.bbp-date:hover:not([disabled]) {
  border-color: var(--a);
  background: rgba(198,128,1,.07);
  transform: translateY(-1px);
}

.bbp-date.today { border-color: rgba(198,128,1,.4); }

.bbp-date.picked {
  background: var(--a) !important;
  border-color: var(--a) !important;
  box-shadow: 0 4px 14px rgba(198,128,1,.4);
  transform: translateY(-1px);
}

.bbp-date[disabled] { opacity: .22; cursor: not-allowed; pointer-events: none; }

.bbp-dd {
  font-size: 9px; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.bbp-dn {
  font-size: 19px; font-weight: 800;
  color: var(--txt); line-height: 1;
}
.bbp-date.today:not(.picked) .bbp-dn { color: var(--a); }
.bbp-date.picked .bbp-dd,
.bbp-date.picked .bbp-dn { color: #fff; }

/* ─── Time slots ─── */
.bbp-times-box {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-top: 14px;
}

.bbp-times-head {
  background: var(--p);
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
}

.bbp-times-head-lbl {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: rgba(255,255,255,.45);
}

.bbp-times-count {
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,.35);
}

.bbp-times-scroll {
  max-height: 190px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}
.bbp-times-scroll::-webkit-scrollbar       { width: 4px; }
.bbp-times-scroll::-webkit-scrollbar-track { background: transparent; }
.bbp-times-scroll::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
.bbp-times-scroll::-webkit-scrollbar-thumb:hover { background: var(--a); }

.bbp-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 10px;
  background: var(--bg);
  min-height: 70px;
}

.bbp-slot {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  margin: 3px;
  padding: 9px 4px;
  cursor: pointer;
  text-align: center;
  font-size: 12px; font-weight: 700;
  color: var(--txt);
  transition: all .12s ease;
  -webkit-tap-highlight-color: transparent;
}

.bbp-slot:hover:not([disabled]):not(.bbp-na) {
  border-color: var(--a); color: var(--a);
  background: rgba(198,128,1,.07);
}

.bbp-slot.bbp-sel {
  background: var(--a) !important;
  border-color: var(--a) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(198,128,1,.4);
}

.bbp-slot.bbp-na {
  opacity: .2; cursor: not-allowed;
  text-decoration: line-through;
}

.bbp-slot-msg {
  grid-column: 1/-1;
  padding: 22px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  line-height: 1.6;
}
.bbp-slot-msg a { color: var(--a); }

/* ═══════════════════════════════════
   STEP 4 — DETAILS
   ═══════════════════════════════════ */
.bbp-form { display: flex; flex-direction: column; gap: 14px; }

.bbp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.bbp-field { display: flex; flex-direction: column; gap: 6px; }

.bbp-field label {
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}

/* ─── Inputs — defeat all theme overrides ─── */
.bbp-inp, .bbp-ta {
  display: block;
  width: 100%;
  padding: 11px 13px;
  background-color: var(--inp-bg) !important;
  color:            var(--inp-txt) !important;
  -webkit-text-fill-color: var(--inp-txt) !important;
  border: 1.5px solid var(--inp-bd);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  -webkit-appearance: none;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.bbp-inp:focus, .bbp-ta:focus {
  border-color: var(--inp-focus) !important;
  box-shadow: 0 0 0 3px rgba(198,128,1,.15) !important;
  -webkit-box-shadow: 0 0 0 3px rgba(198,128,1,.15) !important;
}

/* Autofill */
.bbp-inp:-webkit-autofill,
.bbp-inp:-webkit-autofill:hover,
.bbp-inp:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--inp-bg) inset !important;
  -webkit-text-fill-color: var(--inp-txt) !important;
  caret-color: var(--inp-txt);
}

.bbp-inp::placeholder, .bbp-ta::placeholder {
  color: var(--inp-ph) !important;
  -webkit-text-fill-color: var(--inp-ph) !important;
}

.bbp-ta { resize: vertical; min-height: 80px; }

.bbp-err { font-size: 11px; color: var(--danger); font-weight: 600; min-height: 14px; }

/* Summary box */
.bbp-summary-box {
  background: rgba(198,128,1,.06);
  border: 1.5px solid rgba(198,128,1,.2);
  border-radius: var(--r-sm);
  padding: 14px 16px;
}

.bbp-summary-box-title {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--a); margin-bottom: 10px;
}

.bbp-sb-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.bbp-sb-row:last-child { border-bottom: none; }
.bbp-sb-row .lbl { color: var(--muted); }
.bbp-sb-total {
  font-weight: 900; font-size: 15px;
  border-top: 1.5px solid var(--border2) !important;
  padding-top: 8px !important; margin-top: 4px;
}

/* ═══════════════════════════════════
   STEP 5 — PAYMENT
   ═══════════════════════════════════ */
.bbp-gw-tabs {
  display: flex; gap: 8px;
  flex-wrap: wrap; margin-bottom: 16px;
}

.bbp-gw-tab {
  flex: 1; min-width: 90px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 12px; font-weight: 700;
  color: var(--muted);
  transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.bbp-gw-tab:hover { border-color: var(--a); color: var(--txt); }
.bbp-gw-tab.bbp-gw-active {
  border-color: var(--a); color: var(--a);
  background: rgba(198,128,1,.08);
  box-shadow: 0 0 0 1px var(--a);
}
.bbp-gw-ico { font-size: 16px; }

.bbp-gw-body { min-height: 90px; }

/* Stripe card element */
#bbpCardEl {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px;
  transition: border-color .15s;
}
#bbpCardEl.StripeElement--focus  { border-color: var(--a); box-shadow: 0 0 0 3px rgba(198,128,1,.15); }
#bbpCardEl.StripeElement--invalid { border-color: var(--danger); }

/* Square */
#squareCard {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px; min-height: 52px;
}

/* Cash */
.bbp-cash {
  background: rgba(34,197,94,.06);
  border: 1.5px solid rgba(34,197,94,.15);
  border-radius: var(--r-sm);
  padding: 22px; text-align: center;
}
.bbp-cash-ico { font-size: 36px; display: block; margin-bottom: 10px; }
.bbp-cash h3  { font-size: 15px; font-weight: 700; color: var(--success); margin-bottom: 5px; }
.bbp-cash p   { font-size: 13px; color: var(--muted); line-height: 1.6; }

.bbp-secure {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; font-size: 11px; color: var(--muted); margin-top: 10px;
}

.bbp-pay-err {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  color: var(--danger); font-size: 13px;
  margin-top: 12px;
}

/* ═══════════════════════════════════
   CONFIRMATION
   ═══════════════════════════════════ */
.bbp-done {
  text-align: center;
  padding: 28px 22px 36px;
}

.bbp-check-circle {
  width: 68px; height: 68px;
  background: var(--success); border-radius: 50%;
  color: #fff; font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  animation: bbpPop .6s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 0 0 14px rgba(34,197,94,.09);
}

@keyframes bbpPop {
  from { transform:scale(0) rotate(-30deg); opacity:0; }
  to   { transform:scale(1) rotate(0); opacity:1; }
}

.bbp-done h2 {
  font-size: 22px; font-weight: 900;
  color: var(--txt); margin-bottom: 6px;
  letter-spacing: -.02em;
}
.bbp-done-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.bbp-done-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  text-align: left;
  margin: 0 auto 18px;
  max-width: 400px;
  overflow: hidden;
}

.bbp-done-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.bbp-done-row:last-child { border-bottom: none; }
.bbp-done-row .k { color: var(--muted); font-size: 12px; }
.bbp-done-row .v { font-weight: 700; color: var(--txt); text-align: right; }
.bbp-done-row .ref { font-family: monospace; font-weight: 900; color: var(--a); font-size: 14px; }

.bbp-gcal-note {
  display: inline-block;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.15);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px; color: #60a5fa;
  margin-bottom: 22px;
}

.bbp-again {
  background: var(--a); color: #fff; border: none;
  border-radius: var(--r-sm); padding: 12px 26px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s ease;
}
.bbp-again:hover { background: var(--a2); transform: translateY(-1px); }

/* ═══════════════════════════════════
   FOOTER BUTTONS
   ═══════════════════════════════════ */
.bbp-footer {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.bbp-spacer { flex: 1; }

.bbp-back {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 18px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.bbp-back:hover { border-color: var(--muted); color: var(--txt); }

.bbp-next {
  background: var(--p); color: #fff; border: none;
  border-radius: var(--r-sm); padding: 12px 22px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s ease;
  min-width: 130px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.bbp-next:hover:not(:disabled) { opacity:.88; transform:translateY(-1px); }
.bbp-next:disabled { opacity:.32; cursor:not-allowed; transform:none !important; box-shadow:none; }

.bbp-pay {
  background: var(--a); color: #fff; border: none;
  border-radius: var(--r-sm); padding: 12px 22px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s ease;
  min-width: 160px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgba(198,128,1,.4);
}
.bbp-pay:hover:not(:disabled) { background:var(--a2); transform:translateY(-1px); box-shadow:0 6px 20px rgba(198,128,1,.5); }
.bbp-pay:disabled { opacity:.35; cursor:not-allowed; transform:none !important; box-shadow:none; }

/* ─── Spinner & misc ─── */
.bbp-spin {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.15);
  border-top-color: var(--a);
  border-radius: 50%;
  animation: bbpSpin .65s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
.bbp-empty-spin { border-top-color: rgba(255,255,255,.4); }
@keyframes bbpSpin { to { transform:rotate(360deg); } }

.bbp-load-msg {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 28px; color: var(--muted); font-size: 13px;
}

@keyframes bbpShake {
  0%,100% { transform:translateX(0); }
  20%,60%  { transform:translateX(-4px); }
  40%,80%  { transform:translateX(4px); }
}

/* ══════════════════════════════════════
   LIGHT LAYOUT OVERRIDES
   ══════════════════════════════════════ */
.bbp-wrap[data-layout="minimal"],
.bbp-wrap[data-layout="boutique"] {
  --inp-bg:   #ffffff;
  --inp-txt:  #111827;
  --inp-ph:   rgba(0,0,0,.32);
  --inp-bd:   #d1d5db;
}
.bbp-wrap[data-layout="minimal"] .bbp-step-dot,
.bbp-wrap[data-layout="boutique"] .bbp-step-dot {
  background: rgba(0,0,0,.06); color: rgba(0,0,0,.35);
  border-color: rgba(0,0,0,.1);
}
.bbp-wrap[data-layout="minimal"] .bbp-steps::before,
.bbp-wrap[data-layout="boutique"] .bbp-steps::before { background: rgba(0,0,0,.08); }
.bbp-wrap[data-layout="minimal"] .bbp-step-lbl,
.bbp-wrap[data-layout="boutique"] .bbp-step-lbl { color: rgba(0,0,0,.3); }
.bbp-wrap[data-layout="minimal"] .bbp-step.active .bbp-step-lbl,
.bbp-wrap[data-layout="boutique"] .bbp-step.active .bbp-step-lbl { color: rgba(0,0,0,.8); }
.bbp-wrap[data-layout="minimal"] .bbp-chip,
.bbp-wrap[data-layout="boutique"] .bbp-chip {
  background: rgba(0,0,0,.07); color: rgba(0,0,0,.7); border-color: rgba(0,0,0,.08);
}
.bbp-wrap[data-layout="minimal"] .bbp-times-head-lbl,
.bbp-wrap[data-layout="boutique"] .bbp-times-head-lbl { color: rgba(0,0,0,.45); }
.bbp-wrap[data-layout="minimal"] .bbp-inp:-webkit-autofill,
.bbp-wrap[data-layout="boutique"] .bbp-inp:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #111827 !important;
}
.bbp-wrap[data-layout="minimal"] .bbp-dates-outer::after,
.bbp-wrap[data-layout="boutique"] .bbp-dates-outer::after {
  background: linear-gradient(to right, transparent, var(--bg));
}

/* ══════════════════════════════════════
   RESPONSIVE — Tablet ≤ 640px
   ══════════════════════════════════════ */
@media (max-width: 640px) {
  .bbp-wrap { border-radius: 0; box-shadow: none; }

  .bbp-steps { padding: 14px 16px 0; }
  .bbp-steps::before { left: 38px; right: 38px; }

  .bbp-step-lbl { font-size: 8px; letter-spacing: .03em; }

  .bbp-phead { padding: 18px 16px 12px; }
  .bbp-phead h2 { font-size: 16px; }
  .bbp-pcontent { padding: 14px 16px 10px; }
  .bbp-footer   { padding: 12px 16px 18px; }

  /* Services: list stays as list, just tighter */
  .bbp-svc { padding: 12px 14px; gap: 12px; }
  .bbp-svc-icon { width: 36px; height: 36px; border-radius: 8px; font-size: 16px; }
  .bbp-svc-name { font-size: 13px; }

  /* Staff: 2 columns */
  .bbp-barbers { grid-template-columns: repeat(2, 1fr); }

  /* Date: smaller pills */
  .bbp-date { flex: 0 0 46px; padding: 8px 4px 7px; }
  .bbp-dd   { font-size: 8px; }
  .bbp-dn   { font-size: 17px; }

  /* Slots: 3 columns */
  .bbp-slots { grid-template-columns: repeat(3, 1fr); padding: 8px; }
  .bbp-slot  { font-size: 11px; padding: 8px 2px; margin: 2px; }

  /* Details: 1 column */
  .bbp-row { grid-template-columns: 1fr; }

  /* GW tabs: 2×2 */
  .bbp-gw-tab { min-width: calc(50% - 4px); }

  /* Footer: full-width buttons */
  .bbp-back  { padding: 10px 14px; font-size: 12px; }
  .bbp-next  { min-width: 0; flex: 1; padding: 12px 14px; font-size: 13px; }
  .bbp-pay   { min-width: 0; flex: 1; padding: 12px 14px; font-size: 13px; }

  .bbp-done-card { margin: 0 0 16px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — Mobile ≤ 420px
   ══════════════════════════════════════ */
@media (max-width: 420px) {
  .bbp-step-lbl { display: none; }
  .bbp-step-dot { width: 24px; height: 24px; font-size: 10px; }
  .bbp-steps::before { top: 24px; }

  /* Inputs: 16px prevents iOS zoom */
  .bbp-inp, .bbp-ta { font-size: 16px; }

  .bbp-summary { padding: 6px 14px 10px; }
  .bbp-chip    { font-size: 10px; padding: 2px 8px; }
  .bbp-total   { font-size: 17px; }

  .bbp-barbers { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .bbp-avatar  { width: 48px; height: 48px; font-size: 18px; }
  .bbp-barber-name { font-size: 12px; }

  .bbp-date   { flex: 0 0 44px; }
  .bbp-dates  { gap: 6px; }

  .bbp-times-scroll { max-height: 175px; }
  .bbp-slots  { grid-template-columns: repeat(3, 1fr); }

  /* Stack footer on very small screens */
  .bbp-footer { flex-wrap: wrap; gap: 8px; }
  .bbp-back   { order:2; flex:0 0 auto; }
  .bbp-spacer { display:none; }
  .bbp-next, .bbp-pay { order:1; flex:1; }

  .bbp-done h2 { font-size: 19px; }
  .bbp-done-row { padding: 8px 14px; }
}
