/* Mamma Mia — live order card, arrival alert and tracking page (shop.mammamia.ph).
   Same palette as the rest of the shop: brand red on cream, yellow for surfaces. */

.mm-track-card {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: #fffdf8;
  border: 1px solid #e6d8c6;
  border-left: 5px solid #870a08;
  border-radius: 14px;
  padding: 12px 14px 13px;
  box-shadow: 0 10px 28px rgba(36, 26, 24, 0.22);
  font-family: inherit;
  color: #241a18;
}

.mm-track-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mm-track-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #870a08;
  flex: none;
  animation: mm-pulse 1.6s ease-in-out infinite;
}

@keyframes mm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(135, 10, 8, 0.45); }
  50% { opacity: 0.55; transform: scale(0.85); box-shadow: 0 0 0 6px rgba(135, 10, 8, 0); }
}

.mm-track-title {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.mm-track-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #8d7d76;
  font-size: 20px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.mm-track-status {
  margin-top: 4px;
  font-weight: 700;
  font-size: 14px;
  color: #870a08;
}

.mm-track-eta {
  margin-top: 2px;
  font-size: 12px;
  color: #6b5b55;
}

.mm-track-link {
  display: inline-block;
  margin-top: 10px;
  background: #870a08;
  color: #fffdf8;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
}

.mm-track-link:hover { background: #6d0806; color: #fffdf8; }

.mm-track-ask {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e6d8c6;
  font-size: 12px;
  color: #6b5b55;
}

.mm-track-ask-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.mm-btn {
  border: 1px solid #d9c9b4;
  background: #fff;
  color: #241a18;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.mm-btn-red { background: #870a08; border-color: #870a08; color: #fff; }

/* ── Arrival alert ─────────────────────────────────────────────────────── */

.mm-track-alert {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  z-index: 1100;
  width: 380px;
  max-width: calc(100vw - 28px);
  background: #fffdf8;
  border: 2px solid #870a08;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(36, 26, 24, 0.3);
  text-align: center;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.mm-track-alert.mm-alert-in {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mm-track-alert.mm-alert-out {
  opacity: 0;
  transform: translate(-50%, 20px);
}

.mm-alert-title {
  font-size: 17px;
  font-weight: 900;
  color: #870a08;
}

.mm-alert-body {
  margin-top: 6px;
  font-size: 13px;
  color: #4a3b35;
}

.mm-alert-close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #8d7d76;
  cursor: pointer;
}

/* ── Tracking page ─────────────────────────────────────────────────────── */

.mm-track-wrap {
  max-width: 780px;
  margin: 22px auto 40px;
  padding: 0 14px;
}

.mm-track-panel {
  background: #fffdf8;
  border: 1px solid #e6d8c6;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.mm-track-panel h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #870a08;
}

.mm-track-panel .mm-track-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #6b5b55;
}

.mm-track-panel .mm-track-big {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #241a18;
}

#mm-track-map {
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: #eef1f4;
  border: 1px solid #e6d8c6;
}

.mm-dest-pin {
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 0;
  background: #1f7a3d;
  border: 2px solid #fff;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.mm-rider-arrow svg { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); }

.mm-track-back {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: #870a08;
  text-decoration: none;
}

@media (max-width: 520px) {
  .mm-track-card { right: 8px; left: 8px; bottom: 8px; width: auto; }
  #mm-track-map { height: 320px; }
}
