/* Purchase toasts — Chrome Void glass, bottom-left. Do not edit grok.css. */

.ml-purchase-toast {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 90; /* above footer (2), below nav drawer (10050) */
  padding: 0 0 max(14px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  pointer-events: none;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: #f2f2f5;
}

.ml-purchase-toast__card {
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(380px, calc(100vw - 28px));
  padding: 14px 18px 14px 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(8, 8, 12, 0.84);
  border: 1px solid rgba(232, 232, 238, 0.16);
  border-radius: 14px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  transform: translate3d(calc(-100% - 28px), 0, 0);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.ml-purchase-toast.is-visible .ml-purchase-toast__card {
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.ml-purchase-toast__media {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #050505;
  border: 1px solid rgba(232, 232, 238, 0.2);
}

.ml-purchase-toast__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ml-purchase-toast__ph {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(232, 232, 238, 0.14), transparent 55%),
    #0a0a0c;
}

.ml-purchase-toast__body {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.ml-purchase-toast__kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #b8b8c2;
  line-height: 1.2;
  flex-wrap: wrap;
}

.ml-purchase-toast__name {
  font-family: "Bitcount Prop Single", "Bitcount Single", "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1;
}

/* Invention: live chrome pip — not requested; say no to drop */
.ml-purchase-toast__pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #e8e8ee;
  box-shadow: 0 0 8px rgba(232, 232, 238, 0.55);
  animation: ml-toast-pip 1.8s ease-in-out infinite;
}

.ml-purchase-toast__product {
  font-family: "Bitcount Prop Single", "Bitcount Single", "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f2f2f5;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ml-purchase-toast__view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8e8ee;
}

.ml-purchase-toast__view svg {
  width: 11px;
  height: 11px;
}

.ml-purchase-toast__card:hover .ml-purchase-toast__view,
.ml-purchase-toast__card:focus-visible .ml-purchase-toast__view {
  color: #ffffff;
}

.ml-purchase-toast__card:focus-visible {
  outline: 2px solid #e8e8ee;
  outline-offset: 3px;
}

@keyframes ml-toast-pip {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .ml-purchase-toast {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .ml-purchase-toast__card {
    width: min(340px, calc(100vw - 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ml-purchase-toast__card {
    transform: none;
    transition: opacity 0.2s linear;
  }

  .ml-purchase-toast.is-visible .ml-purchase-toast__card {
    transform: none;
  }

  .ml-purchase-toast__pip {
    animation: none;
    opacity: 0.85;
  }
}
/* Real-order toast: location line + green delivered pip */
.ml-purchase-toast__where {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: rgba(242, 242, 245, 0.55);
}
.ml-purchase-toast__kicker { color: #3ddc84; }