/* =============================================================================
 * ZIC Landing — Réservation de service (badge carte + modal booking + visio)
 * Accent cyan #0EA5E9 (Services & RDV)
 * ============================================================================= */

/* Badge « Réserver » sur la carte catalogue (même position que le badge digital) */
.zh-shop-card-service {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: #0EA5E9; color: #fff;
  font-size: 11px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(14, 165, 233, .4);
}

.zh-shop-btn--service { background: #0EA5E9 !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.zh-shop-btn--service:hover { filter: brightness(1.06); }
.zh-shop-btn--service[hidden] { display: none !important; }

/* ---------- overlay + carte ---------- */
body.zsb-lock { overflow: hidden; }
.zsb-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--pp-scrim, rgba(8, 4, 20, .62));
  display: flex; align-items: flex-start; justify-content: center;
  overflow: auto; padding: 7vh 16px 40px;
  backdrop-filter: blur(3px);
}
.zsb-card {
  width: 480px; max-width: 100%;
  background: var(--pp-card, #fff); color: var(--pp-text, #1F1340);
  border-radius: 18px;
  box-shadow: 0 24px 70px var(--pp-shadow, rgba(8, 4, 20, .45));
  overflow: hidden;
}
.zsb-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 22px 12px; border-bottom: 1px solid var(--pp-border, #f3f4f6);
}
.zsb-title { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.zsb-sub { margin: 0; }
.zsb-loc {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  background: #f0f9ff; color: #0284c7; font-size: 11.5px; font-weight: 700;
}
.zsb-address { margin: 6px 0 0; font-size: 12px; color: var(--pp-text-muted, #6b7280); }
.zsb-close {
  width: 32px; height: 32px; flex: none; border: none; border-radius: 8px;
  background: var(--pp-overlay, #f3f4f6); color: var(--pp-text, #1F1340); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.zsb-body { padding: 16px 22px 22px; }
.zsb-label {
  margin: 14px 0 8px; font-size: 11px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase; color: var(--pp-text-soft, #9ca3af);
}
.zsb-label:first-child { margin-top: 0; }
.zsb-tz { font-weight: 500; text-transform: none; letter-spacing: 0; }

.zsb-error {
  margin: 0 0 12px; padding: 10px 14px; border-radius: 10px;
  background: #fef2f2; color: #dc2626; font-size: 12.5px; font-weight: 600;
}

/* ---------- jours ---------- */
.zsb-days {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.zsb-days::-webkit-scrollbar { display: none; }
.zsb-day {
  flex: none; width: 58px; padding: 9px 0 8px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  border-radius: 12px; border: 1.5px solid var(--pp-border, rgba(31, 19, 64, .12));
  background: var(--pp-card, #fff); cursor: pointer;
}
.zsb-day-dow { font-size: 10.5px; font-weight: 700; color: var(--pp-text-soft, #9ca3af); text-transform: uppercase; }
.zsb-day-num { font-size: 17px; font-weight: 800; color: var(--pp-text, #1F1340); }
.zsb-day-month { font-size: 10.5px; color: var(--pp-text-soft, #9ca3af); }
.zsb-day.is-active { border-color: #0EA5E9; background: #0EA5E9; }
.zsb-day.is-active .zsb-day-dow,
.zsb-day.is-active .zsb-day-num,
.zsb-day.is-active .zsb-day-month { color: #fff; }

/* ---------- créneaux ---------- */
.zsb-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.zsb-slot {
  padding: 10px 0; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--pp-border, rgba(31, 19, 64, .12)); background: var(--pp-card, #fff);
  font-size: 13px; font-weight: 700; color: var(--pp-text, #1F1340);
  font-variant-numeric: tabular-nums;
}
.zsb-slot.is-taken {
  color: var(--pp-text-soft, #c7c9d1); text-decoration: line-through;
  background: var(--pp-bg-soft, #fafafa); cursor: not-allowed;
}
.zsb-slot.is-active { background: #0EA5E9; border-color: #0EA5E9; color: #fff; }
.zsb-slots-note { margin: 4px 0 0; font-size: 12.5px; color: var(--pp-text-soft, #9ca3af); }

/* ---------- paiement ---------- */
.zsb-pay { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--pp-border, #f3f4f6); }
.zsb-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px; font-size: 13px; color: var(--pp-text-muted, #6b7280);
}
.zsb-total strong { font-size: 19px; font-weight: 800; color: var(--pp-text, #1F1340); }
.zsb-balance-note { margin: 0 0 8px; font-size: 11.5px; color: #d97706; }
.zsb-pay-btn {
  width: 100%; margin-top: 8px; padding: 14px;
  border: none; border-radius: 12px; cursor: pointer;
  background: #0EA5E9; color: #fff; font-size: 14px; font-weight: 800;
  transition: filter .15s;
}
.zsb-pay-btn:hover { filter: brightness(1.06); }
.zsb-pay-btn[disabled] { background: var(--pp-overlay-strong, #e5e7eb); color: var(--pp-text-soft, #9ca3af); cursor: default; filter: none; }
.zsb-secure { margin: 10px 0 0; text-align: center; font-size: 11.5px; color: var(--pp-text-soft, #9ca3af); }

/* ---------- Paiement en pièces (XP) ---------- */
.zsb-xp-pill {
  display: inline-block; margin: 6px 0 8px; padding: 5px 12px; border-radius: 999px;
  background: rgba(124, 58, 237, .10); color: #6d28d9; font-size: 12px; font-weight: 800;
}
.zsb-xp-btn {
  width: 100%; margin-top: 8px; padding: 13px;
  border: 1px solid rgba(124, 58, 237, .30); border-radius: 12px; cursor: pointer;
  background: rgba(124, 58, 237, .10); color: #6d28d9; font-size: 13.5px; font-weight: 800;
  transition: background .15s;
}
.zsb-xp-btn:hover { background: rgba(124, 58, 237, .16); }
.zsb-xp-btn[disabled] { opacity: .55; cursor: default; }
.zsb-xp-note { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: #6d28d9; }

/* ---------- statut / succès ---------- */
.zsb-status { text-align: center; padding: 42px 30px 36px; }
.zsb-status h3 { margin: 14px 0 8px; font-size: 19px; font-weight: 800; }
.zsb-status p { margin: 0 auto 12px; max-width: 340px; font-size: 13px; color: var(--pp-text-muted, #6b7280); line-height: 1.6; }
.zsb-spinner {
  width: 38px; height: 38px; margin: 0 auto;
  border: 4px solid #e0f2fe; border-top-color: #0EA5E9; border-radius: 50%;
  animation: zsbSpin .8s linear infinite;
}
@keyframes zsbSpin { to { transform: rotate(360deg); } }
.zsb-check {
  width: 62px; height: 62px; margin: 0 auto 6px; border-radius: 50%;
  background: #0EA5E9; color: #fff; font-size: 30px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.zsb-success-svc { font-weight: 700; color: var(--pp-text, #1F1340) !important; }
.zsb-success-info {
  background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px;
  padding: 10px 14px !important; color: #0369a1 !important; font-size: 12.5px !important;
}
.zsb-ghost-btn {
  display: inline-block; margin-top: 4px; padding: 10px 18px;
  border-radius: 10px; border: 1px solid var(--pp-border, rgba(31, 19, 64, .14));
  background: var(--pp-card, #fff); color: var(--pp-text, #1F1340); font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: none;
}
.zsb-visio-link { color: #0284c7; border-color: #bae6fd; }
.zsb-done-btn { margin-top: 14px; }

@media (max-width: 520px) {
  .zsb-slots { grid-template-columns: repeat(3, 1fr); }
}
