/*
 * GPAT — Réservation d'équipement sans compte ([gpat-rental]).
 * Réplique le design du booking flow de l'app (préfixe .bf-* → .gpat-rental-*).
 * Tout est scopé sous .gpat-rental / .gpat-rental-overlay pour ne pas fuir dans le thème.
 */

/* ── Jetons de marque ───────────────────────────────────────────────────── */
/* Miroir de --gpat-blue / --gpat-blue-rgb de l'app (theme/variables.scss).
   Déclarés sur les deux racines : la modale est déplacée sous <body>. */
.gpat-rental,
.gpat-rental-overlay {
  --gpat-rental-blue: #114f76;
  --gpat-rental-blue-rgb: 17, 79, 118;
  --gpat-rental-blue-hover: #0d3b59;
}

/* ── Bouton déclencheur ─────────────────────────────────────────────────── */
.gpat-rental,
.gpat-rental * {
  box-sizing: border-box;
}

.gpat-rental {
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Capsule des CTA de la page hôte. Métriques relevées sur les boutons
   Elementor voisins (.elementor-button de la page atelier) : Barlow 700 / 20px,
   bordure 1px, rayon 80px, padding 15/20. Aucun relief.
   Les couleurs empruntent les globales Elementor, avec repli sur nos jetons
   quand le shortcode vit hors d'une page Elementor. */
.gpat-rental-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px !important;
  padding: 15px 20px !important;
  background: var(--e-global-color-secondary, var(--gpat-rental-blue)) !important;
  color: #fff !important;
  border: 1px solid var(--e-global-color-secondary, var(--gpat-rental-blue)) !important;
  border-radius: 80px !important;
  font-family: inherit !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, filter 0.15s;
  box-shadow: none !important;
}

/* Flèche allongée, 2,5× le libellé comme sur les CTA voisins.
   `height: auto` est essentiel : la boîte 1em CARRÉE des autres icônes ferait
   ici un bouton de ~80px de haut. Avec la hauteur libre, le tracé garde son
   ratio 3,2:1 et n'impose que ~15px à la ligne. */
.gpat-rental-trigger .gpat-rental-arrow {
  font-size: 50px !important;
  flex-shrink: 0;
}

/* Hauteur posée explicitement : sur un <svg>, `height: auto` retombe sur
   l'attribut `height="1em"` au lieu de dériver du viewBox — la flèche
   occupait alors 50px de haut et le bouton 82px. 152,29 / 491,14 = 0,31em. */
.gpat-rental-trigger .gpat-rental-arrow svg {
  width: 1em !important;
  height: 0.31em !important;
}

/* Assombrissement neutre : la teinte venant d'Elementor, on ne peut pas en
   dériver une nuance foncée. */
.gpat-rental-trigger:hover {
  filter: brightness(0.92) !important;
}

/* Variante contour : fond de page traversant, remplissage au survol. */
.gpat-rental-trigger.gpat-rental-trigger--white {
  background: var(--e-global-color-accent, transparent) !important;
  color: var(--e-global-color-text, var(--gpat-rental-blue)) !important;
  border-color: var(--e-global-color-text, var(--gpat-rental-blue)) !important;
}

.gpat-rental-trigger.gpat-rental-trigger--white:hover,
.gpat-rental-trigger.gpat-rental-trigger--white:focus,
.gpat-rental-trigger.gpat-rental-trigger--white:active {
  background: var(--e-global-color-text, var(--gpat-rental-blue)) !important;
  color: var(--e-global-color-accent, #fff) !important;
  border-color: var(--e-global-color-text, var(--gpat-rental-blue)) !important;
  filter: none !important;
}

/* ── Overlay + modal ────────────────────────────────────────────────────── */
body.gpat-rental-open {
  overflow: hidden;
}

.gpat-rental-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100000;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #111827;
  line-height: 1.4;
  animation: gpat-rental-fade 0.18s ease;
}

.gpat-rental-overlay *,
.gpat-rental-overlay *::before,
.gpat-rental-overlay *::after {
  box-sizing: border-box;
}

@keyframes gpat-rental-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gpat-rental-modal {
  background: #fff;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.gpat-rental-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #eef1f4;
}

.gpat-rental-h {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.gpat-rental-x {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  color: #374151 !important;
  font-size: 18px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.gpat-rental-x:hover {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

.gpat-rental-body {
  padding: 16px 20px 24px;
}

/* Icônes inline */
.gpat-rental-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.gpat-rental-ico svg {
  width: 1em;
  height: 1em;
  display: block;
}

/* Flèche de marque GPAT (ratio ~3,2:1) : rendue dans une boîte 1em carrée
   comme les <ion-icon> de l'app, d'où la taille 24px sur un texte de 13-15px. */
.gpat-rental-arrow {
  font-size: 24px;
  position: relative;
}

/* ── Carte équipement sélectionné (entête) ──────────────────────────────── */
.gpat-rental-hcard {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}

.gpat-rental-hcard-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #edf0f3;
  background: #f4f7fa;
}

.gpat-rental-hcard-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gpat-rental-hcard-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gpat-rental-blue) 0%, #2563eb 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.gpat-rental-hcard-info {
  min-width: 0;
  flex: 1;
}

.gpat-rental-hcard-title {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 4px;
}

.gpat-rental-hcard-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gpat-rental-hcard-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gpat-rental-blue);
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

.gpat-rental-hcard-loc .gpat-rental-ico { font-size: 14px; }

/* ── Stepper ────────────────────────────────────────────────────────────── */
.gpat-rental-steps {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 0 4px;
}

.gpat-rental-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 40px;
  flex-shrink: 0;
}

.gpat-rental-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s;
}

.gpat-rental-step-label {
  font-size: 9px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.25s;
}

.gpat-rental-step.active .gpat-rental-step-num {
  background: var(--gpat-rental-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--gpat-rental-blue-rgb), 0.35);
}

.gpat-rental-step.active .gpat-rental-step-label { color: var(--gpat-rental-blue); }

.gpat-rental-step.completed .gpat-rental-step-num {
  background: #059669;
  color: #fff;
}

.gpat-rental-step.completed .gpat-rental-step-label { color: #059669; }

.gpat-rental-step-line {
  flex: 1;
  height: 3px;
  min-width: 6px;
  background: #e5e7eb;
  border-radius: 2px;
  margin: 14.5px 2px 0;
  transition: background 0.25s;
}

.gpat-rental-step-line.active { background: #059669; }

/* ── Contenu ────────────────────────────────────────────────────────────── */
.gpat-rental-content {
  animation: gpat-rental-slide 0.2s ease;
}

@keyframes gpat-rental-slide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.gpat-rental-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
}

.gpat-rental-section-label .gpat-rental-ico {
  font-size: 20px;
  color: var(--gpat-rental-blue);
}

.gpat-rental-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none !important;
  border: none !important;
  color: var(--gpat-rental-blue) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 0 !important;
  margin-bottom: 14px;
  cursor: pointer;
}

.gpat-rental-back .gpat-rental-ico { font-size: 16px; }
.gpat-rental-back:hover { text-decoration: underline; }

.gpat-rental-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--gpat-rental-blue-rgb), 0.09);
  color: var(--gpat-rental-blue);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.gpat-rental-date-badge .gpat-rental-ico { font-size: 14px; }

.gpat-rental-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}

.gpat-rental-hint .gpat-rental-ico { font-size: 16px; flex-shrink: 0; }

/* ── Calendrier ─────────────────────────────────────────────────────────── */
.gpat-rental-cal {
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.gpat-rental-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.gpat-rental-cal-nav button {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  color: #374151 !important;
  font-size: 18px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.gpat-rental-cal-nav button:hover {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

.gpat-rental-cal-month {
  font-weight: 700;
  font-size: 16px;
  color: #111827;
  text-transform: capitalize;
}

.gpat-rental-cal-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.gpat-rental-cal-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.gpat-rental-cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px !important;
  border: none !important;
  background: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  cursor: pointer;
  transition: all 0.15s;
}

.gpat-rental-cal-cell:hover:not(.past):not(.other):not(.beyond-limit):not(.no-slots):not(.full) {
  background: rgba(var(--gpat-rental-blue-rgb), 0.09) !important;
  color: var(--gpat-rental-blue) !important;
}

.gpat-rental-cal-cell.selected {
  background: var(--gpat-rental-blue) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(var(--gpat-rental-blue-rgb), 0.3) !important;
}

.gpat-rental-cal-cell.past,
.gpat-rental-cal-cell.other,
.gpat-rental-cal-cell.no-slots,
.gpat-rental-cal-cell.beyond-limit {
  color: #d1d5db !important;
  cursor: default;
}

.gpat-rental-cal-cell.full {
  color: #f4a0a0 !important;
  background: #fef2f2 !important;
  cursor: default;
}

.gpat-rental-cal-cell:disabled {
  cursor: default;
}

/* ── Créneaux ───────────────────────────────────────────────────────────── */
.gpat-rental-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gpat-rental-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  font-family: inherit !important;
  cursor: pointer;
  transition: all 0.15s;
}

.gpat-rental-slot:hover:not(.unavailable) {
  border-color: var(--gpat-rental-blue) !important;
  background: rgba(var(--gpat-rental-blue-rgb), 0.05) !important;
  box-shadow: 0 4px 12px rgba(var(--gpat-rental-blue-rgb), 0.1) !important;
}

.gpat-rental-slot.unavailable {
  opacity: 0.5 !important;
  cursor: default;
  background: #f9fafb !important;
}

.gpat-rental-slot-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #111827;
}

.gpat-rental-slot-time .gpat-rental-ico {
  font-size: 18px;
  color: var(--gpat-rental-blue);
}

.gpat-rental-slot-avail {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  background: #d1fae5;
  padding: 4px 10px;
  border-radius: 999px;
}

.gpat-rental-slot-avail.unavailable {
  background: #fee2e2;
  color: #dc2626;
}

/* ── Grille équipements ─────────────────────────────────────────────────── */
.gpat-rental-eq-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gpat-rental-eq-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.gpat-rental-eq-card:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07); }
.gpat-rental-eq-card:active { transform: scale(0.985); }

.gpat-rental-eq-icon {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #eef1f4;
  background: #f4f7fa;
}

.gpat-rental-eq-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gpat-rental-eq-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--gpat-rental-blue-rgb), 0.09);
  color: var(--gpat-rental-blue);
  font-size: 24px;
  font-weight: 800;
}

.gpat-rental-eq-content {
  min-width: 0;
  flex: 1;
}

.gpat-rental-eq-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
  margin-bottom: 4px;
}

.gpat-rental-eq-desc {
  margin: 0 0 6px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gpat-rental-eq-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gpat-rental-blue);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}

.gpat-rental-eq-loc .gpat-rental-ico { font-size: 14px; }

.gpat-rental-eq-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gpat-rental-blue);
  color: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
}

/* Recentrage optique sur les capitales : 0,05em du texte (13px) ≈ 0,65px. */
.gpat-rental-eq-btn .gpat-rental-arrow { top: 1.25px; }

/* ── Formulaire ─────────────────────────────────────────────────────────── */
.gpat-rental-form {
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.gpat-rental-field {
  margin-bottom: 12px;
}

.gpat-rental-field:last-child { margin-bottom: 0; }

.gpat-rental-field > label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
}

.gpat-rental-field-row {
  display: flex;
  gap: 12px;
}

.gpat-rental-field-row .gpat-rental-field {
  flex: 1;
}

.gpat-rental-input {
  width: 100% !important;
  padding: 12px 14px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 14px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  background: #fff !important;
  color: #111827 !important;
}

.gpat-rental-input::placeholder { color: #9ca3af; }

.gpat-rental-input:focus {
  outline: none !important;
  border-color: var(--gpat-rental-blue) !important;
}

.gpat-rental-textarea {
  resize: vertical;
  min-height: 64px !important;
}

/* Honeypot : retiré du flux, invisible, mais soumis si un bot le remplit. */
.gpat-rental-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Récapitulatif ──────────────────────────────────────────────────────── */
.gpat-rental-recap {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.gpat-rental-recap-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.gpat-rental-recap-row:last-child { border-bottom: none; }

.gpat-rental-recap-label {
  color: #6b7280;
  font-weight: 500;
  flex-shrink: 0;
}

.gpat-rental-recap-value {
  color: #111827;
  font-weight: 600;
  text-align: right;
}

/* ── Bouton principal ───────────────────────────────────────────────────── */
.gpat-rental-btn {
  width: 100% !important;
  padding: 14px 20px !important;
  background: var(--gpat-rental-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(var(--gpat-rental-blue-rgb), 0.25) !important;
}

.gpat-rental-btn .gpat-rental-ico { font-size: 18px; }

/* Recentrage optique sur les capitales : 0,05em du texte (15px) ≈ 0,75px,
   + 1px de descente pour aligner la flèche sur l'axe du libellé. */
.gpat-rental-btn .gpat-rental-arrow { font-size: 24px; top: 1.8px; }

.gpat-rental-btn:disabled {
  opacity: 0.4 !important;
  cursor: default;
  box-shadow: none !important;
}

.gpat-rental-btn:hover:not(:disabled) {
  background: var(--gpat-rental-blue-hover) !important;
  box-shadow: 0 6px 18px rgba(var(--gpat-rental-blue-rgb), 0.35) !important;
}

.gpat-rental-btn.confirm {
  background: #059669 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
}

.gpat-rental-btn.confirm:hover:not(:disabled) {
  background: #047857 !important;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4) !important;
}

/* ── État succès ────────────────────────────────────────────────────────── */
.gpat-rental-done {
  text-align: center;
  padding-top: 12px;
}

.gpat-rental-done-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.gpat-rental-done-icon .gpat-rental-ico {
  font-size: 48px;
  color: #059669;
}

.gpat-rental-done-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px;
}

.gpat-rental-done-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 16px;
  line-height: 1.4;
}

.gpat-rental-done-details {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.gpat-rental-done-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
}

.gpat-rental-done-row:last-child { border-bottom: none; }

.gpat-rental-done-row .gpat-rental-ico {
  font-size: 18px;
  color: var(--gpat-rental-blue);
  flex-shrink: 0;
}

/* ── Loading / Empty / Error ────────────────────────────────────────────── */
.gpat-rental-loading,
.gpat-rental-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 16px;
  color: #9ca3af;
  font-size: 14px;
  text-align: center;
}

.gpat-rental-empty .gpat-rental-ico {
  font-size: 32px;
  color: var(--gpat-rental-blue);
  opacity: 0.6;
}

.gpat-rental-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fee2e2;
  color: #dc2626;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}

.gpat-rental-error .gpat-rental-ico { font-size: 18px; flex-shrink: 0; }

.gpat-rental-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #d1d5db;
  border-top-color: var(--gpat-rental-blue);
  border-radius: 50%;
  animation: gpat-rental-spin 0.7s linear infinite;
}

.gpat-rental-spinner.sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-top-color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
}

@keyframes gpat-rental-spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .gpat-rental-body { padding: 14px 14px 20px; }
  .gpat-rental-step { width: 32px; }
  .gpat-rental-step-num { width: 28px; height: 28px; font-size: 12px; }
  .gpat-rental-step-label { font-size: 8px; }
  .gpat-rental-step-line { margin-top: 12.5px; }
  .gpat-rental-field-row { flex-direction: column; gap: 0; }
  .gpat-rental-field-row .gpat-rental-field { margin-bottom: 12px; }
}

/* ── Verrouillage des états face au thème WordPress ────────────────────────
 *
 * Le thème atteint nos <button> par des sélecteurs génériques (`button:hover`,
 * `.button`, `input`). Une déclaration de thème en :hover pèse (0,1,1) et bat
 * donc nos règles de base en (0,1,0) : sans les états ci-dessous, une case
 * désactivée du calendrier ou le déclencheur au survol viraient à la couleur
 * du thème — c'est exactement ce qui se produisait.
 *
 * Chaque règle pèse au moins (0,2,0) et porte !important : elle l'emporte sur
 * n'importe quel `button:hover` de thème, même déclaré !important, tout en
 * restant sous nos propres règles d'état plus spécifiques (ex. le survol d'une
 * case active, en (0,6,0)). L'outline de focus n'est pas touché : le halo natif
 * reste disponible au clavier.
 */
.gpat-rental-trigger:focus,
.gpat-rental-trigger:active {
  background: var(--e-global-color-secondary, var(--gpat-rental-blue)) !important;
  border-color: var(--e-global-color-secondary, var(--gpat-rental-blue)) !important;
  color: #fff !important;
  filter: brightness(0.92) !important;
}

.gpat-rental-x:focus,
.gpat-rental-x:active {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #374151 !important;
}

.gpat-rental-back:hover,
.gpat-rental-back:focus,
.gpat-rental-back:active {
  background: none !important;
  border: none !important;
  color: var(--gpat-rental-blue) !important;
}

.gpat-rental-cal-nav button:focus,
.gpat-rental-cal-nav button:active {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

/* Cases inertes : aucun retour visuel, quel que soit le thème. */
.gpat-rental-cal-cell:disabled:hover,
.gpat-rental-cal-cell:disabled:focus,
.gpat-rental-cal-cell:disabled:active {
  background: none !important;
  border: none !important;
}

.gpat-rental-cal-cell.full:hover,
.gpat-rental-cal-cell.full:focus,
.gpat-rental-cal-cell.full:active {
  background: #fef2f2 !important;
  color: #f4a0a0 !important;
}

.gpat-rental-cal-cell.selected:hover,
.gpat-rental-cal-cell.selected:focus,
.gpat-rental-cal-cell.selected:active {
  background: var(--gpat-rental-blue) !important;
  color: #fff !important;
}

.gpat-rental-slot:disabled:hover,
.gpat-rental-slot:disabled:focus,
.gpat-rental-slot:disabled:active {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
}

.gpat-rental-btn:disabled:hover,
.gpat-rental-btn:disabled:focus,
.gpat-rental-btn:disabled:active {
  background: var(--gpat-rental-blue) !important;
}

.gpat-rental-btn.confirm:disabled:hover,
.gpat-rental-btn.confirm:disabled:focus,
.gpat-rental-btn.confirm:disabled:active {
  background: #059669 !important;
}

/* Champs : le thème stylait `input:focus`, en (0,1,1) donc au-dessus de notre
   règle de base. On verrouille le fond et la couleur sur les trois états. */
.gpat-rental-input:hover,
.gpat-rental-input:focus,
.gpat-rental-input:active {
  background: #fff !important;
  color: #111827 !important;
}

/* Ces trois éléments tirent leurs dimensions d'une boîte fixe ou d'un
   aspect-ratio et ne déclaraient donc aucun padding : le thème s'y engouffrait
   et écrasait le contenu. Portée élargie d'un cran pour la marge de sécurité. */
.gpat-rental-modal .gpat-rental-x,
.gpat-rental-cal .gpat-rental-cal-nav button,
.gpat-rental-cal .gpat-rental-cal-cell {
  padding: 0 !important;
}
