
:root {
  --bp-font-family: 'Sofia Pro', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

#bp-front-root,
.bp-modal,
.bp-modal *,
.bp-book-btn,
.bp-fallback-btn {
  font-family: var(--bp-font-family);
}

.bp-modal-open {
  overflow: hidden;
}

.bp-book-btn {
  --bp-btn-bg: #1973ff;
  --bp-btn-hover-bg: #1664db;
  --bp-btn-text: #fff;
  --bp-btn-radius: 12px;
  --bp-btn-padding-y: 12px;
  --bp-btn-padding-x: 18px;
  --bp-btn-font-size: 15px;
  border: 0;
  padding: var(--bp-btn-padding-y) var(--bp-btn-padding-x);
  border-radius: var(--bp-btn-radius);
  font-weight: 700;
  cursor: pointer;
  background: var(--bp-btn-bg);
  color: var(--bp-btn-text);
  font-size: var(--bp-btn-font-size);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.bp-book-btn:hover {
  background: var(--bp-btn-hover-bg);
}

.bp-book-btn:active {
  transform: translateY(1px);
}
.bp-book-btn:focus-visible,
.bp-modal-close:focus-visible,
.bp-back:focus-visible,
.bp-next:focus-visible,
.bp-pickcard:focus-visible,
.bp-tile:focus-visible,
.bp-pay-option:focus-visible,
.bp-iconbtn:focus-visible,
.bp-cal-nav:focus-visible,
.bp-cal-day:focus-visible,
.bp-slot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 115, 255, 0.16), 0 0 0 1px rgba(25, 115, 255, 0.48);
}

.bp-book-btn--full {
  width: 100%;
}

.bp-book-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  min-height: 16px;
  font-size: 16px;
}

.bp-book-btn-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.bp-book-btn-label {
  display: inline-block;
}

.bp-modal-open .bp-fallback-btn {
  display: none !important;
}
.bp-modal .bp-fallback-btn,
.bp-modal .bp-book-btn {
  display: none !important;
}

.bp-modal-overlay {
  --bp-overlay-bg: rgba(0, 0, 0, 0.35);
  position: fixed;
  inset: 0;
  background: var(--bp-overlay-bg);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 14px;
  animation: bp-front-overlay-fade 0.2s ease;
}

.bp-modal {
  --bp-modal-max-width: 1100px;
  --bp-modal-radius: 18px;
  --bp-modal-bg: #fff;
  --bp-side-bg: #fbfbff;
  --bp-main-bg: #fff;
  width: min(var(--bp-modal-max-width), 100%);
  height: min(720px, 100%);
  background: var(--bp-modal-bg);
  border-radius: var(--bp-modal-radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.25);
  --bp-accent: #1973ff;
  animation: bp-front-modal-pop 0.24s ease;
}

.bp-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0;
  cursor: pointer;
  z-index: 5;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.bp-modal-close::before {
  content: "x";
  font-size: 22px;
  line-height: 1;
}

.bp-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.bp-modal-grid {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  height: 100%;
}
.bp-modal-grid.bp-modal-grid--left-main {
  grid-template-columns: 260px 1fr;
}
.bp-modal-grid.bp-modal-grid--main-summary {
  grid-template-columns: 1fr 280px;
}
.bp-modal-grid.bp-modal-grid--main-only {
  grid-template-columns: 1fr;
}

.bp-side {
  padding: 26px 18px;
  background: var(--bp-side-bg);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-side-icon {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  background: #eef0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bp-side-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-side-title {
  margin: 6px 0 0;
  font-size: 18px;
}
.bp-side-desc {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.bp-side-help {
  margin-top: auto;
  font-size: 13px;
  color: #666;
}
.bp-help-phone {
  color: #111;
  font-weight: 700;
  margin-top: 4px;
}

.bp-main {
  padding: 22px 22px 18px;
  overflow: auto;
  background: var(--bp-main-bg);
  -webkit-overflow-scrolling: touch;
}

.bp-step {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* S14.5 Confirmation step styles */
.bp-alert{padding:10px 12px;border-radius:10px;font-size:14px}
.bp-alert-error{background:#ffe9e9;border:1px solid #ffb6b6}
.bp-alert-success{background:#eaffea;border:1px solid #b6f5b6}
.bp-alert-warn{background:#fff7e6;border:1px solid #ffd27a}
.bp-confirm-card{margin-top:12px;padding:12px;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:#fff}
.bp-confirm-card .bp-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0}

.bp-main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bp-main-head h2 {
  margin: 0;
  font-size: 20px;
}

.bp-step-dots {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.bp-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #e5e7ff;
}
.bp-dot.active {
  background: var(--bp-accent);
}

.bp-summary {
  padding: 22px 18px;
  background: var(--bp-side-bg);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  -webkit-overflow-scrolling: touch;
}
.bp-summary-title {
  font-weight: 800;
  margin-bottom: 10px;
}
.bp-summary-box {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 14px;
}
.bp-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.bp-summary-row:last-child {
  border-bottom: 0;
}
.bp-summary-row .k {
  color: #666;
  font-size: 12px;
}
.bp-summary-row .v {
  font-weight: 700;
  font-size: 12px;
  text-align: right;
}
.bp-mobile-context {
  display: none;
}
.bp-mobile-intro {
  display: none;
}
.bp-mobile-summary {
  display: none;
}

.bp-error {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff2f2;
  border: 1px solid #ffd0d0;
  color: #b50000;
  margin-bottom: 12px;
}
.bp-loading {
  color: #666;
  margin-bottom: 12px;
}

.bp-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #d7dce3;
  outline: none;
  margin-bottom: 14px;
  background: #fff;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bp-textarea {
  resize: vertical;
  min-height: 110px;
  border-radius: 16px;
  border: 1px solid #d7dce3;
  padding: 12px 16px;
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bp-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 14px;
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.bp-card.active {
  border-color: var(--bp-accent);
  box-shadow: 0 10px 30px rgba(59, 43, 255, 0.12);
}
.bp-card-title {
  font-weight: 800;
}
.bp-card-sub {
  color: #666;
  font-size: 12px;
  margin-top: 4px;
}
.bp-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bp-card-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: #f2f4ff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.bp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 520px) {
  .bp-grid {
    grid-template-columns: 1fr;
  }
}

.bp-tile {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 6px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.bp-tile.active {
  border-color: var(--bp-accent);
  box-shadow: 0 10px 30px rgba(59, 43, 255, 0.12);
}
.bp-tile-title {
  font-weight: 800;
}

.bp-tile-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}
.bp-tile-sub {
  color: #666;
  font-size: 12px;
}
.bp-tile-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.bp-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
}

.bp-step-footer {
  background: #fff;
  padding-top: 14px;
  padding-bottom: 4px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  position: sticky;
  bottom: 0;
}
.bp-back,
.bp-next {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
}
.bp-back {
  background: rgba(0, 0, 0, 0.06);
}
.bp-next {
  background: var(--bp-accent);
  color: #fff;
}
.bp-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bp-empty {
  color: #666;
  font-weight: 700;
  padding: 12px 0;
}

.bp-cardlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bp-pickcard {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 64px 1fr 90px;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.bp-pickcard:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}
.bp-pickcard.active {
  border-color: var(--bp-accent);
  box-shadow: 0 16px 50px rgba(59, 43, 255, 0.12);
}

.bp-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: #f2f4ff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.bp-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  background: #f2f4ff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.bp-pickcard-title {
  font-weight: 900;
  font-size: 15px;
}
.bp-pickcard-sub {
  color: #6b7280;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.35;
}
.bp-pickcard-sub.small {
  font-size: 11px;
}

.bp-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.bp-chip {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef0ff;
  color: #2b2b9b;
}
.bp-chip.ghost {
  background: rgba(0, 0, 0, 0.04);
  color: #374151;
}

.bp-pickcard-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.bp-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}
.bp-price-line {
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
}
.bp-price-num {
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}
.bp-price-cur {
  color: #6b7280;
  font-size: 11px;
  margin-top: 2px;
}

.bp-radio {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  position: relative;
}
.bp-radio.on {
  border-color: var(--bp-accent);
}
.bp-radio.on::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: var(--bp-accent);
}

.bp-check {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  position: relative;
}
.bp-check.on {
  border-color: var(--bp-accent);
  background: var(--bp-accent);
}
.bp-check.on::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: 2px solid #fff;
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg);
}

.bp-label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
  color: #444;
  font-size: 13px;
}

.bp-input-field {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #d7dce3;
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bp-select {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #d7dce3;
  padding: 0 14px;
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bp-input:focus,
.bp-input-field:focus,
.bp-textarea:focus,
.bp-select:focus {
  border-color: #9bb7ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.bp-field {
  margin-bottom: 14px;
}

.bp-form .bp-input,
.bp-form textarea.bp-input,
.bp-form select.bp-input {
  width: 100%;
  min-height: 44px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bp-form .bp-input:focus,
.bp-form textarea.bp-input:focus,
.bp-form select.bp-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.bp-form textarea.bp-input {
  min-height: 120px;
  resize: vertical;
}

.bp-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 520px) {
  .bp-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bp-slot-btn {
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.bp-slot-btn.active {
  border: 2px solid #4318ff;
  background: rgba(67, 24, 255, 0.1);
}

.bp-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.bp-required {
  color: #ef4444;
}

.bp-review {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 14px;
}
.bp-review-section {
  margin-top: 12px;
  font-weight: 800;
}
.bp-review-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.bp-review-row:last-child {
  border-bottom: 0;
}
.bp-review-row .k {
  color: #666;
  font-size: 12px;
}
.bp-review-row .v {
  font-weight: 700;
  font-size: 12px;
  text-align: right;
}

.bp-done {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.bp-done-card {
  text-align: center;
  padding: 30px 22px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.bp-done-title {
  font-size: 22px;
  font-weight: 900;
}
.bp-done-sub {
  margin-top: 8px;
  color: #555;
  font-weight: 700;
}
.bp-done-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
  color: #1973ff;
  text-decoration: none;
}
.bp-done-actions {
  margin-top: 16px;
}

/* DateTime step */
.bp-datetime {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bp-dt-head {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
}

.bp-dt-month {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.bp-dt-month-title {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.2px;
  min-width: 180px;
  text-align: center;
}
.bp-iconbtn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.bp-iconbtn:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}

.bp-dt-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.bp-dt-wd {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #9aa0aa;
  padding: 6px 0;
}

.bp-dt-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.bp-dt-day {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  border-radius: 14px;
  padding: 10px 0 8px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.bp-dt-day:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.bp-dt-day.muted {
  opacity: 0.35;
}
.bp-dt-day.disabled {
  opacity: 0.2;
  cursor: not-allowed;
}
.bp-dt-day.selected {
  border-color: #2563eb;
  box-shadow: 0 16px 44px rgba(37, 99, 235, 0.16);
}
.bp-dt-daynum {
  text-align: center;
  font-weight: 900;
  font-size: 14px;
}
.bp-dt-bar {
  height: 4px;
  width: 26px;
  border-radius: 999px;
  margin: 8px auto 0;
  background: rgba(0, 0, 0, 0.08);
}
.bp-dt-bar.on {
  background: #22c55e;
}

.bp-dt-slots {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
}
.bp-dt-slots-title {
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 12px;
}
.bp-dt-date {
  color: #2563eb;
}

.bp-dt-slotgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bp-slot {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #f8fafc;
  padding: 12px 10px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.bp-slot:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}
.bp-slot.active {
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}

.bp-dt-loading,
.bp-dt-empty {
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
  color: #6b7280;
  font-weight: 700;
}

@media (max-width: 720px) {
  .bp-dt-slotgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bp-dt-month-title {
    min-width: 140px;
    font-size: 16px;
  }
}

@media (max-width: 920px) {
  .bp-modal-overlay {
    padding: 10px;
  }
  .bp-modal-grid {
    grid-template-columns: 1fr;
  }
  .bp-side,
  .bp-summary {
    display: none;
  }
  .bp-modal {
    height: min(820px, 100%);
    border-radius: 20px;
  }
  .bp-main {
    padding: 18px 16px 16px;
  }
  .bp-main-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
  }
  .bp-step-dots {
    margin-top: 0;
    flex-wrap: wrap;
  }
  .bp-mobile-context {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
  }
  .bp-mobile-intro {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(25, 115, 255, 0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,247,255,0.96));
    box-shadow: 0 12px 30px rgba(25, 115, 255, 0.08);
  }
  .bp-mobile-intro--textOnly {
    grid-template-columns: 1fr;
  }
  .bp-mobile-intro__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(25, 115, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .bp-mobile-intro__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .bp-mobile-intro__body {
    min-width: 0;
    display: grid;
    gap: 10px;
  }
  .bp-mobile-intro__desc {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
  }
  .bp-mobile-intro__help {
    display: grid;
    gap: 4px;
    color: #64748b;
    font-size: 12px;
  }
  .bp-mobile-intro__help strong {
    color: #0f172a;
    font-size: 13px;
  }
  .bp-mobile-summary {
    display: block;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
  }
  .bp-mobile-summary__toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
  }
  .bp-mobile-summary__toggle:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(25, 115, 255, 0.18), 0 0 0 3px rgba(25, 115, 255, 0.12);
  }
  .bp-mobile-summary__copy {
    min-width: 0;
    display: grid;
    gap: 4px;
  }
  .bp-mobile-summary__eyebrow {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .bp-mobile-summary__preview {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
  }
  .bp-mobile-summary__state {
    flex: 0 0 auto;
    color: var(--bp-accent);
    font-size: 12px;
    font-weight: 900;
  }
  .bp-mobile-summary__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.24s ease;
  }
  .bp-mobile-summary.is-open .bp-mobile-summary__panel {
    grid-template-rows: 1fr;
  }
  .bp-mobile-summary__panelInner {
    overflow: hidden;
    padding: 0 14px 14px;
    -webkit-overflow-scrolling: touch;
  }
  .bp-mobile-summary .bp-summary-box {
    border-radius: 14px;
  }
}

@media (max-width: 560px) {
  .bp-modal-overlay {
    padding: 6px;
  }
  .bp-modal {
    height: 100%;
    border-radius: 18px;
  }
  .bp-modal-close {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
  }
  .bp-mobile-intro {
    grid-template-columns: 1fr;
  }
  .bp-mobile-intro__icon {
    width: 48px;
    height: 48px;
  }
  .bp-mobile-summary__toggle {
    flex-direction: column;
    align-items: flex-start;
  }
  .bp-mobile-summary__state {
    align-self: flex-start;
  }
}


/* Availability bar shimmer (unknown/loading) */
.bp-dt-bar.loading{
  background: linear-gradient(90deg,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.16) 40%,
    rgba(0,0,0,.08) 80%);
  background-size: 200% 100%;
  animation: bpShimmer 1.1s infinite linear;
}
@keyframes bpShimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

@keyframes bp-front-overlay-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bp-front-modal-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .bp-card:hover,
  .bp-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-book-btn,
  .bp-card,
  .bp-tile,
  .bp-pickcard,
  .bp-slot,
  .bp-modal-overlay,
  .bp-modal,
  .bp-mobile-summary__panel {
    animation: none !important;
    transition: none !important;
  }
}

/* Slot skeleton blocks */
.bp-slot.skeleton{
  height:42px;
  border-radius:12px;
  background: linear-gradient(90deg,
    rgba(0,0,0,.06) 0%,
    rgba(0,0,0,.12) 40%,
    rgba(0,0,0,.06) 80%);
  background-size: 200% 100%;
  animation: bpShimmer 1.1s infinite linear;
  border:1px solid rgba(0,0,0,.08);
}



.bp-datetime {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bp-calendar {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}

.bp-cal-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 10px;
}

.bp-cal-title { text-align: center; font-weight: 700; }

.bp-cal-nav {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

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

.bp-cal-wd { text-align:center; font-weight:600; opacity:.55; font-size:12px; }

.bp-cal-day {
  border-radius: 14px;
  height: 44px;
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
  font-weight: 700;
}
.bp-cal-day.is-out { opacity: .25; }
.bp-cal-day:disabled { opacity: .25; cursor: not-allowed; }
.bp-cal-day.is-selected { outline: 2px solid #2563eb; }

.bp-slots {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  min-height: 160px;
}

.bp-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 12px;
}

.bp-slot {
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: #f5f7ff;
  font-weight: 700;
}
.bp-slot.is-selected {
  background: #dbeafe;
  border-color: var(--bp-accent);
}

.bp-slot-skeleton { display:grid; gap:10px; margin-top:12px; }
.bp-skel {
  height: 42px;
  border-radius: 12px;
  background: rgba(0,0,0,.06);
}

.bp-error { color: #b91c1c; margin-top: 10px; font-weight: 600; }
.bp-muted { opacity: .65; margin-top: 10px; }

@media (min-width: 900px) {
  .bp-datetime { flex-direction: column; }
  .bp-slot-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* Dynamic fields layout */
.bp-fields-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.bp-field.bp-full{ grid-column: 1 / -1; }
.bp-field.bp-half{ grid-column: auto; }
@media (max-width: 640px){
  .bp-fields-grid{ grid-template-columns: 1fr; }
  .bp-field.bp-half{ grid-column: 1 / -1; }
}
.bp-checkbox-row{ display:flex; gap:10px; align-items:center; }

.bp-pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .bp-pay-grid {
    grid-template-columns: 1fr;
  }
}

.bp-pay-option {
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bp-pay-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.bp-pay-option.is-active {
  border: 2px solid rgba(37, 99, 235, 0.65);
  background: rgba(37, 99, 235, 0.06);
}

.bp-pay-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f7f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  overflow: hidden;
}

.bp-pay-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.bp-pay-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.bp-payment-step {
  margin-top: 16px;
}

.bp-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bp-total {
  font-weight: 700;
}

.bp-h-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bp-amount {
  font-weight: 800;
}

.bp-pay-card {
  margin-top: 12px;
}

.bp-pay-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bp-pay-box {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  margin-bottom: 12px;
}

.bp-pay-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Wizard polish overrides */
.bp-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

.bp-step {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bp-side-step,
.bp-main-eyebrow,
.bp-section-eyebrow,
.bp-mobile-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25, 115, 255, 0.08);
  color: var(--bp-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bp-side-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.bp-side-progress span,
.bp-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--bp-accent);
}

.bp-main-head {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.bp-main-head__copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.bp-main-head h2 {
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.1;
}

.bp-main-head h2:focus {
  outline: none;
}

.bp-main-head__desc {
  margin: 0;
  max-width: 56ch;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.bp-progress-card {
  flex: 0 0 230px;
  display: grid;
  gap: 10px;
  width: min(230px, 100%);
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.bp-progress-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.bp-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.bp-step-dots {
  flex-wrap: wrap;
}

.bp-dot {
  transition: transform 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.bp-dot.done {
  background: rgba(25, 115, 255, 0.28);
}

.bp-dot.active {
  transform: scale(1.18);
}

.bp-card,
.bp-pickcard,
.bp-summary-box,
.bp-review,
.bp-section-card,
.bp-calendar,
.bp-slots {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.bp-card,
.bp-pickcard {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.bp-card:hover,
.bp-pickcard:hover {
  border-color: rgba(25, 115, 255, 0.18);
}

.bp-card.active,
.bp-pickcard.active,
.bp-tile.active {
  box-shadow: 0 16px 40px rgba(25, 115, 255, 0.12);
}

.bp-card-row {
  align-items: flex-start;
}

.bp-section-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.bp-section-intro {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.bp-section-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.bp-section-desc {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.bp-review-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bp-review,
.bp-summary-items {
  display: grid;
}

.bp-review-row,
.bp-summary-row {
  align-items: flex-start;
}

.bp-review-row .v,
.bp-summary-row .v {
  max-width: 58%;
  word-break: break-word;
}

.bp-summary-row--total {
  margin-top: 4px;
  padding-top: 14px;
}

.bp-summary-row--total .k,
.bp-summary-row--total .v {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.bp-step-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 18px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--bp-main-bg) 28px, var(--bp-main-bg) 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.bp-step-footer__spacer {
  flex: 1 1 auto;
}

.bp-back,
.bp-next,
.bp-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.bp-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
}

.bp-btn-light {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.bp-btn-primary {
  background: var(--bp-accent);
  color: #fff;
}

.bp-back:hover,
.bp-next:hover,
.bp-btn:hover {
  transform: translateY(-1px);
}

.bp-back:disabled,
.bp-next:disabled,
.bp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bp-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 115, 255, 0.16), 0 0 0 1px rgba(25, 115, 255, 0.48);
}

.bp-cal-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bp-cal-day__bar {
  height: 4px;
  width: 28px;
  margin: 6px auto 0;
  border-radius: 999px;
  background: #e5e7eb;
}

.bp-cal-day__bar.is-open {
  background: #22c55e;
}

.bp-cal-day__bar.is-loading {
  opacity: 0.3;
}

.bp-calendar-note {
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.bp-slots-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.bp-slots-title {
  font-size: 15px;
}

.bp-slots-sub {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.bp-selected-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(25, 115, 255, 0.08);
  color: var(--bp-accent);
  font-size: 12px;
  font-weight: 900;
}

.bp-mobile-summary__preview {
  word-break: break-word;
}

@media (max-width: 920px) {
  .bp-main {
    padding: 16px 14px 14px;
  }

  .bp-main-head {
    display: block;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 0;
  }

  .bp-main-head__copy {
    display: block;
  }

  .bp-main-eyebrow,
  .bp-main-head__desc,
  .bp-progress-card,
  .bp-mobile-context,
  .bp-calendar-note,
  .bp-section-eyebrow,
  .bp-section-desc {
    display: none !important;
  }

  .bp-main-head h2 {
    margin: 0;
    font-size: clamp(22px, 7vw, 34px);
  }

  .bp-step {
    gap: 12px;
  }

  .bp-list,
  .bp-cardlist,
  .bp-review-layout {
    gap: 12px;
  }

  .bp-review-layout {
    grid-template-columns: 1fr;
  }

  .bp-section-intro {
    margin-bottom: 12px;
  }

  .bp-section-title {
    font-size: 16px;
  }

  .bp-card {
    padding: 12px;
  }

  .bp-card-row {
    gap: 12px;
  }

  .bp-card-thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
  }

  .bp-card-sub,
  .bp-pickcard-sub {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .bp-pickcard {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 12px;
  }

  .bp-pickcard-left {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bp-thumb,
  .bp-avatar {
    width: 56px;
    height: 56px;
  }

  .bp-pickcard-right {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 6px;
  }

  .bp-price {
    align-items: flex-start;
    text-align: left;
  }

  .bp-slots-head {
    flex-direction: column;
  }

  .bp-step-footer {
    position: static;
    bottom: auto;
    z-index: auto;
    margin-top: auto;
    padding-top: 14px;
    padding-bottom: 0;
    background: transparent;
    border-top: 0;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .bp-step-footer__spacer {
    display: none;
  }

  .bp-back,
  .bp-next,
  .bp-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .bp-modal-overlay {
    padding: 6px;
  }

  .bp-modal {
    height: 100%;
    border-radius: 18px;
  }

  .bp-modal-close {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
  }

  .bp-main {
    padding: 14px 12px 12px;
  }

  .bp-main-head {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .bp-section-card,
  .bp-review,
  .bp-summary-box,
  .bp-calendar,
  .bp-slots {
    border-radius: 16px;
    padding: 14px;
  }

  .bp-pickcard {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .bp-pickcard-right {
    grid-column: 1 / -1;
  }

  .bp-pickcard-title {
    font-size: 14px;
  }

  .bp-pickcard-sub {
    font-size: 12px;
  }

  .bp-summary-row,
  .bp-review-row {
    flex-direction: column;
    gap: 4px;
  }

  .bp-review-row .v,
  .bp-summary-row .v {
    max-width: none;
    text-align: left;
  }
}
