/* doc-project | paiement/assets/css/delivery-zone-confirmation.css | Stylise la modale bloquante, son animation pédagogique maison-vers-route, la consigne de positionnement, les boutons et les états cartographiques responsive avec réduction des mouvements. | Expose: .deliveryZoneCheck* | Dépend de: paiement/delivery_zone_confirmation_modal.php, Leaflet CSS | Impacte: lisibilité, compréhension visuelle du point d’arrêt exact, accessibilité, responsive et ergonomie avant paiement | Tables: aucune */
.deliveryZoneCheck[hidden] {
  display: none !important;
}

.deliveryZoneCheck {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: grid;
  place-items: center;
  padding: 16px;
}

.deliveryZoneCheck__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(3px);
}

.deliveryZoneCheck__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.deliveryZoneCheck__header {
  text-align: center;
}

.deliveryZoneCheck__header h2 {
  max-width: 620px;
  margin: 0 auto;
  color: #0f172a;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.deliveryZoneCheck__eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.deliveryZoneCheck__intro {
  max-width: 650px;
  margin: 12px auto 18px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.5;
}

.deliveryZoneCheck__important {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 2px solid #2563eb;
  border-radius: 15px;
  background: #eff6ff;
  color: #1e3a8a;
  box-shadow: 0 5px 16px rgba(37, 99, 235, 0.1);
}

.deliveryZoneCheck__importantIcon {
  flex: 0 0 auto;
  font-size: 1.8rem;
  line-height: 1;
}

.deliveryZoneCheck__important strong,
.deliveryZoneCheck__important span {
  display: block;
}

.deliveryZoneCheck__important strong {
  margin-bottom: 2px;
  color: #1d4ed8;
  font-size: 1.05rem;
  font-weight: 900;
}

.deliveryZoneCheck__important div > span {
  color: #334155;
  font-size: 0.97rem;
  font-weight: 650;
  line-height: 1.35;
}

.deliveryZoneCheck__placementDemo {
  margin: 0 0 14px;
  padding: 10px 12px 9px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
}

.deliveryZoneCheck__placementScene {
  position: relative;
  width: min(520px, 100%);
  margin: 0 auto;
  aspect-ratio: 520 / 190;
  overflow: hidden;
  border-radius: 14px;
  background: #dbeafe;
}

.deliveryZoneCheck__placementDrawing {
  display: block;
  width: 100%;
  height: 100%;
}

.deliveryZoneCheck__demoGround {
  fill: #dcfce7;
}

.deliveryZoneCheck__demoRoad {
  fill: none;
  stroke: #475569;
  stroke-width: 36;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deliveryZoneCheck__demoRoadCenter {
  fill: none;
  stroke: #f8fafc;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 12 10;
}

.deliveryZoneCheck__demoHouseWall {
  fill: #f8fafc;
  stroke: #94a3b8;
  stroke-width: 2;
}

.deliveryZoneCheck__demoHouseRoof {
  fill: #dc2626;
  stroke: #991b1b;
  stroke-width: 2;
  stroke-linejoin: round;
}

.deliveryZoneCheck__demoHouseDoor {
  fill: #92400e;
}

.deliveryZoneCheck__demoHouseWindow {
  fill: #60a5fa;
  stroke: #2563eb;
  stroke-width: 1.5;
}

.deliveryZoneCheck__demoMarker {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 51%;
  width: 29px;
  height: 38px;
  transform: translate(-50%, -100%);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #2563eb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
  animation: deliveryZoneCheckMarkerMove 4.8s ease-in-out infinite;
}

.deliveryZoneCheck__demoMarker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
}

.deliveryZoneCheck__demoMarkerDot {
  position: absolute;
  left: -7px;
  bottom: -12px;
  width: 38px;
  height: 12px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.18);
}

.deliveryZoneCheck__demoWrong,
.deliveryZoneCheck__demoRight {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.deliveryZoneCheck__demoWrong {
  left: calc(50% + 27px);
  top: 28%;
  background: #dc2626;
  animation: deliveryZoneCheckWrong 4.8s ease-in-out infinite;
}

.deliveryZoneCheck__demoRight {
  left: calc(50% + 27px);
  top: 65%;
  background: #16a34a;
  opacity: 0;
  animation: deliveryZoneCheckRight 4.8s ease-in-out infinite;
}

.deliveryZoneCheck__placementLegend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.25;
}

.deliveryZoneCheck__placementLegend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.deliveryZoneCheck__placementLegend b {
  font-size: 1.15rem;
  line-height: 1;
}

.deliveryZoneCheck__legendWrong {
  color: #dc2626;
}

.deliveryZoneCheck__legendRight {
  color: #16a34a;
}

@keyframes deliveryZoneCheckMarkerMove {
  0%,
  30% {
    top: 51%;
  }
  48%,
  88% {
    top: 91%;
  }
  100% {
    top: 51%;
  }
}

@keyframes deliveryZoneCheckWrong {
  0%,
  7% {
    opacity: 0;
    transform: scale(0.65);
  }
  13%,
  30% {
    opacity: 1;
    transform: scale(1);
  }
  39%,
  100% {
    opacity: 0;
    transform: scale(0.65);
  }
}

@keyframes deliveryZoneCheckRight {
  0%,
  48% {
    opacity: 0;
    transform: scale(0.65);
  }
  56%,
  88% {
    opacity: 1;
    transform: scale(1);
  }
  96%,
  100% {
    opacity: 0;
    transform: scale(0.65);
  }
}

.deliveryZoneCheck__map {
  height: min(48vh, 420px);
  min-height: 280px;
  overflow: hidden;
  border: 2px solid #93c5fd;
  border-radius: 16px;
  background: #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.deliveryZoneCheck__status {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
}

.deliveryZoneCheck__status.is-ok {
  background: #dcfce7;
  color: #166534;
}

.deliveryZoneCheck__status.is-error {
  background: #fee2e2;
  color: #991b1b;
}

.deliveryZoneCheck__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.deliveryZoneCheck__button {
  min-height: 52px;
  border: 0;
  border-radius: 13px;
  padding: 0 20px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    opacity 140ms ease;
}

.deliveryZoneCheck__button:not(:disabled):hover {
  transform: translateY(-1px);
}

.deliveryZoneCheck__button:not(:disabled):active {
  transform: translateY(0);
}

.deliveryZoneCheck__button--secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.deliveryZoneCheck__button--secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.deliveryZoneCheck__button--primary {
  min-width: 220px;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.deliveryZoneCheck__button--primary:not(:disabled):hover {
  background: #1d4ed8;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
}

.deliveryZoneCheck__button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.deliveryZoneCheck__button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.deliveryZoneCheck__outside {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  background: #fff1f2;
  color: #881337;
}

.deliveryZoneCheck__outside p {
  margin: 6px 0 12px;
}

.deliveryZoneCheck .leaflet-container {
  font-family: inherit;
}

@media (max-width: 600px) {
  .deliveryZoneCheck {
    align-items: end;
    padding: 0;
  }

  .deliveryZoneCheck__header h2 {
    font-size: 1.55rem;
  }

  .deliveryZoneCheck__intro {
    margin-bottom: 14px;
    font-size: 0.94rem;
  }

  .deliveryZoneCheck__important {
    align-items: flex-start;
    padding: 12px 13px;
  }

  .deliveryZoneCheck__importantIcon {
    font-size: 1.5rem;
  }

  .deliveryZoneCheck__placementDemo {
    padding: 8px;
  }

  .deliveryZoneCheck__placementLegend {
    gap: 6px 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
    font-size: 0.78rem;
  }

  .deliveryZoneCheck__demoWrong,
  .deliveryZoneCheck__demoRight {
    width: 30px;
    height: 30px;
    font-size: 1.4rem;
  }

  .deliveryZoneCheck__dialog {
    width: 100%;
    max-height: 94vh;
    padding: 16px;
    border-radius: 22px 22px 0 0;
  }

  .deliveryZoneCheck__map {
    height: 42vh;
    min-height: 250px;
  }

  .deliveryZoneCheck__actions {
    flex-direction: column-reverse;
  }

  .deliveryZoneCheck__button {
    width: 100%;
    min-height: 54px;
  }

  .deliveryZoneCheck__button--primary {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deliveryZoneCheck__demoMarker {
    top: 91%;
    animation: none;
  }

  .deliveryZoneCheck__demoWrong {
    display: none;
    animation: none;
  }

  .deliveryZoneCheck__demoRight {
    top: 65%;
    opacity: 1;
    transform: scale(1);
    animation: none;
  }
}