
/* 4.Hours — suivi livraison inspiré de l'expérience DoorDash */
:root{
  --fh-track-bg:#0b0d10;
  --fh-track-panel:#171a1f;
  --fh-track-panel-2:#20242a;
  --fh-track-line:#363b43;
  --fh-track-text:#f7f7f7;
  --fh-track-muted:#a8adb5;
  --fh-track-accent:#ff6a00;
}

.fh-dd-tracking{
  width:100%;
  color:var(--fh-track-text);
  background:var(--fh-track-bg);
  border:1px solid rgba(255,255,255,.08);
  border-radius:32px;
  overflow:hidden;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}

.fh-dd-map-shell{
  position:relative;
  width:100%;
  height:clamp(360px,54vh,720px);
  background:#15181d;
  overflow:hidden;
}

.fh-dd-map-shell .four-hours-live-map{
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  border:0!important;
  border-radius:0!important;
}

.fh-dd-live-pill{
  position:absolute;
  top:18px;
  right:18px;
  z-index:20;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(17,18,21,.9);
  color:#fff;
  font-size:13px;
  font-weight:900;
  letter-spacing:.02em;
  box-shadow:0 8px 24px rgba(0,0,0,.24);
}

.fh-dd-sheet{
  position:relative;
  z-index:10;
  margin-top:-28px;
  padding:24px 28px 30px;
  border-radius:30px 30px 0 0;
  background:#151515;
  box-shadow:0 -12px 34px rgba(0,0,0,.28);
}

.fh-dd-handle{
  width:48px;
  height:5px;
  margin:0 auto 24px;
  border-radius:999px;
  background:#5b5d61;
}

.fh-dd-eyebrow{
  display:block;
  margin-bottom:8px;
  color:#d2d2d2;
  font-size:13px;
  font-weight:800;
}

.fh-dd-sheet h2{
  margin:0;
  color:#fff;
  font-size:clamp(30px,5vw,52px);
  line-height:1.02;
  letter-spacing:-.045em;
}

.fh-dd-subtitle{
  margin:12px 0 0;
  color:#d6d6d6;
  font-size:17px;
  line-height:1.45;
}

.fh-dd-eta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:18px 0 24px;
  color:#e9e9e9;
}

.fh-dd-eta strong{
  font-size:18px;
}

.fh-dd-progress{
  position:relative;
  height:5px;
  margin:28px 0 18px;
  border-radius:999px;
  background:#4a4b4e;
  overflow:visible;
}

.fh-dd-progress > span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:#fff;
  transition:width .35s ease;
}

.fh-dd-route-icons{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  align-items:start;
  gap:8px;
}

.fh-dd-route-step{
  text-align:center;
  color:#777;
  font-size:12px;
  font-weight:800;
}

.fh-dd-route-step b{
  width:42px;
  height:42px;
  margin:-38px auto 8px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:5px solid #151515;
  background:#3a3b3e;
  color:#aaa;
  font-size:17px;
}

.fh-dd-route-step.active{
  color:#fff;
}

.fh-dd-route-step.active b{
  background:#fff;
  color:#111;
}

.fh-dd-driver{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid rgba(255,255,255,.10);
}

.fh-dd-avatar{
  flex:0 0 52px;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f5f5f5;
  color:#111;
  font-weight:950;
}

.fh-dd-driver small{
  display:block;
  color:#aaa;
  margin-bottom:3px;
}

.fh-dd-driver strong{
  display:block;
  color:#fff;
  font-size:17px;
}

.fh-dd-waiting{
  min-height:420px;
  display:grid;
  place-items:center;
  padding:42px 28px;
  text-align:center;
  background:linear-gradient(180deg,#14171b,#0d0f12);
}

.fh-dd-waiting-inner{
  max-width:520px;
}

.fh-dd-waiting-dots{
  display:flex;
  justify-content:center;
  gap:9px;
  margin-bottom:24px;
}

.fh-dd-waiting-dots span{
  width:14px;
  height:14px;
  border-radius:50%;
  background:#777;
  animation:fhDdPulse 1.2s infinite ease-in-out;
}

.fh-dd-waiting-dots span:nth-child(2){animation-delay:.15s}
.fh-dd-waiting-dots span:nth-child(3){animation-delay:.3s}

@keyframes fhDdPulse{
  0%,100%{opacity:.35;transform:scale(.8)}
  50%{opacity:1;transform:scale(1)}
}

.fh-dd-waiting h3{
  margin:0 0 10px;
  color:#fff;
  font-size:28px;
}

.fh-dd-waiting p{
  margin:0;
  color:#b7bbc1;
  font-size:17px;
  line-height:1.5;
}

.fh-dd-addresses{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:22px;
}

.fh-dd-address{
  padding:16px;
  border-radius:18px;
  background:#202328;
}

.fh-dd-address small{
  display:block;
  margin-bottom:5px;
  color:#9aa0a9;
  font-weight:800;
}

.fh-dd-address strong{
  color:#fff;
  line-height:1.4;
}

@media(max-width:760px){
  .fh-dd-tracking{
    border-radius:28px;
  }

  .fh-dd-map-shell{
    height:50dvh;
    min-height:380px;
  }

  .fh-dd-sheet{
    margin-top:-24px;
    padding:20px 18px calc(30px + env(safe-area-inset-bottom,0px));
  }

  .fh-dd-sheet h2{
    font-size:36px;
  }

  .fh-dd-addresses{
    grid-template-columns:1fr;
  }

  .fh-dd-route-step{
    font-size:10px;
  }
}
