/* D-195 — tip heure de prise en charge (création course) */

.ms-pickup-tip-sheet[hidden] {
  display: none !important;
}

.ms-pickup-tip-sheet {
  position: fixed;
  inset: 0;
  z-index: 12010;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ms-pickup-tip-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 34, 0.48);
  backdrop-filter: blur(3px);
  animation: msPickupTipFade 0.22s ease;
}

.ms-pickup-tip-panel {
  position: relative;
  width: min(440px, 100%);
  margin: 0;
  border-radius: 22px 22px 0 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--mint, #B8E0D2) 42%, #fff) 0%, #fff 42%);
  box-shadow: 0 -14px 44px rgba(8, 28, 34, 0.24);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  animation: msPickupTipUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0.85rem 1.15rem 1.35rem;
}

@media (min-width: 720px) {
  .ms-pickup-tip-sheet {
    align-items: center;
  }

  .ms-pickup-tip-panel {
    border-radius: 22px;
    padding: 1.1rem 1.25rem 1.4rem;
  }
}

.ms-pickup-tip-grab {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--night, #0A3D4A) 18%, transparent);
  margin: 0.1rem auto 0.35rem;
}

.ms-pickup-tip-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ms-pickup-tip-ico {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 50% 42%, #fff 0 22%, transparent 23%),
    linear-gradient(145deg, var(--mint, #B8E0D2), #fff);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--night, #0A3D4A) 12%, transparent),
    0 6px 16px rgba(10, 61, 74, 0.1);
  position: relative;
}

.ms-pickup-tip-ico::before {
  content: "";
  position: absolute;
  inset: 28% 28% 28% 28%;
  border: 2px solid var(--night, #0A3D4A);
  border-radius: 50%;
}

.ms-pickup-tip-ico::after {
  content: "";
  position: absolute;
  top: 36%;
  left: 48%;
  width: 2px;
  height: 28%;
  background: var(--night, #0A3D4A);
  border-radius: 2px;
  transform-origin: bottom center;
  transform: rotate(25deg);
  animation: msPickupTipTick 1.4s ease-in-out infinite;
}

.ms-pickup-tip-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--night, #0A3D4A) 70%, #1a6b7a);
}

.ms-pickup-tip-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--night, #0A3D4A);
}

.ms-pickup-tip-close {
  margin-left: auto;
  border: 0;
  background: color-mix(in srgb, var(--night, #0A3D4A) 8%, #fff);
  color: var(--night, #0A3D4A);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.ms-pickup-tip-close:focus-visible {
  outline: 2px solid var(--night, #0A3D4A);
  outline-offset: 2px;
}

.ms-pickup-tip-body {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--mint, #B8E0D2) 28%, #fff);
  border: 1px solid color-mix(in srgb, var(--night, #0A3D4A) 10%, transparent);
  color: var(--night, #0A3D4A);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 550;
}

.ms-pickup-tip-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--night, #0A3D4A), color-mix(in srgb, var(--night, #0A3D4A) 78%, #1a6b7a));
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 61, 74, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ms-pickup-tip-ok:hover,
.ms-pickup-tip-ok:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(10, 61, 74, 0.28);
  outline: none;
}

.ms-pickup-tip-ok:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@keyframes msPickupTipFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes msPickupTipUp {
  from { transform: translateY(22px); opacity: 0.55; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes msPickupTipTick {
  0%, 100% { transform: rotate(18deg); }
  50% { transform: rotate(42deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ms-pickup-tip-backdrop,
  .ms-pickup-tip-panel,
  .ms-pickup-tip-ok,
  .ms-pickup-tip-ico::after {
    animation: none !important;
    transition: none !important;
  }
}
