/* ===== Bloc "Réservez votre créneau" — Baptêmes Drift ===== */
.driftbooking-box {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  padding: 22px;
  margin: 20px 0;
  max-width: 640px;
}
.driftbooking-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.driftbooking-title { margin: 0; font-size: 1.25rem; font-weight: 700; color: #232323; }
.driftbooking-sub { margin: 4px 0 0; font-size: 0.85rem; color: #777; }

.driftbooking-step { display: flex; gap: 12px; margin-bottom: 18px; }
.driftbooking-step:last-of-type { margin-bottom: 10px; }
.driftbooking-stepnum {
  flex: 0 0 28px; width: 28px; height: 28px;
  border-radius: 50%; background: #f1f1f1; color: #555;
  font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.driftbooking-stepbody { flex: 1; min-width: 0; }
.driftbooking-label { display: block; font-weight: 700; margin-bottom: 8px; color: #232323; font-size: 0.95rem; }
.driftbooking-legend { font-weight: 400; font-size: 0.78rem; color: #777; margin-left: 8px; white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: baseline; }
.dot-ok { background: #2e9e4f; }

/* ----- Calendrier ----- */
.driftbooking-cal { border: 1px solid #e8e8e8; border-radius: 10px; padding: 12px; background: #fcfcfc; }
.driftbooking-calnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.driftbooking-calnav button {
  border: 1px solid #ddd; background: #fff; border-radius: 8px;
  width: 34px; height: 32px; font-size: 1.2rem; line-height: 1;
  cursor: pointer; color: #232323;
}
.driftbooking-calnav button:hover:not(:disabled) { background: #232323; color: #fff; border-color: #232323; }
.driftbooking-calnav button:disabled { opacity: 0.3; cursor: not-allowed; }
#drift-cal-title { font-weight: 700; text-transform: capitalize; }
.driftbooking-calweek {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 0.72rem; font-weight: 700; color: #999;
  margin-bottom: 4px;
}
.driftbooking-calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.drift-cal-day {
  position: relative; aspect-ratio: 1 / 1;
  border: 1px solid transparent; background: transparent; border-radius: 10px;
  font-size: 0.85rem; color: #bbb; cursor: default;
  display: flex; align-items: center; justify-content: center;
  padding: 0; min-height: 38px;
}
.drift-cal-day.is-blank { visibility: hidden; }
.drift-cal-day.is-past { text-decoration: line-through; }
.drift-cal-day.is-unavailable { background: #f4f4f4; }
.drift-cal-day.is-available {
  background: #e8f6ec; border-color: #bfe6c9; color: #1c6b34;
  font-weight: 700; cursor: pointer;
}
.drift-cal-day.is-available:hover { background: #1c6b34; border-color: #1c6b34; color: #fff; }
.drift-cal-day.is-available:hover .drift-cal-dot { background: #fff; }
.drift-cal-day.is-selected {
  background: #232323 !important; border-color: #232323 !important; color: #fff !important;
}
.drift-cal-day.is-selected .drift-cal-dot { background: #7ddf9a; }
.drift-cal-day.is-today span { text-decoration: underline; text-underline-offset: 3px; }
.drift-cal-dot {
  position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: #2e9e4f;
}

/* ----- Horaires ----- */
.driftbooking-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.driftbooking-slot {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 1.5px solid #2fb5d2; background: #fff; border-radius: 10px;
  padding: 10px 8px; cursor: pointer; font-size: 0.9rem;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.driftbooking-slot:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(47, 181, 210, 0.35); }
.drift-slot-time { font-weight: 700; color: #232323; }
.drift-slot-badge {
  font-size: 0.72rem; font-weight: 600;
  background: #e8f6ec; color: #1c6b34; border-radius: 20px; padding: 1px 10px;
}
.driftbooking-slot.is-selected { background: #232323; border-color: #232323; }
.driftbooking-slot.is-selected .drift-slot-time { color: #fff; }
.driftbooking-slot.is-selected .drift-slot-badge { background: #7ddf9a; color: #123; }
.driftbooking-slot.is-disabled { opacity: 0.5; cursor: not-allowed; border-color: #ddd; background: #f7f7f7; }
.driftbooking-slot.is-disabled .drift-slot-badge { background: #eee; color: #999; }

.driftbooking-qty { max-width: 130px; }
.driftbooking-cta {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.driftbooking-cta:disabled { opacity: 0.6; cursor: wait; }
.driftbooking-hint { color: #777; font-style: italic; font-size: 0.85rem; margin: 4px 0 0; }
.driftbooking-hint a { color: #2fb5d2; }
.driftbooking-error {
  background: #fdecea; border: 1px solid #f5c6cb; color: #a94442;
  border-radius: 8px; padding: 10px 12px; margin-top: 12px; font-size: 0.9rem;
}

@media (max-width: 480px) {
  .driftbooking-box { padding: 16px; }
  .driftbooking-slots { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
  .drift-cal-day { min-height: 34px; font-size: 0.8rem; }
}
