/* ===== acompanhamento.css ===== */
* {
  box-sizing: border-box;
}

html {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
}

body {
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-family: "Segoe UI", sans-serif;
  background: #f8fafc;
  margin: 0;
  padding: 20px;
  color: #0f172a;
}

.container {
  max-width: 760px;
  margin: 0 auto;
}

h1,
h2 {
  text-align: center;
}

.etapas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.etapa {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.etapa .circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #cbd5e1;
  margin: 0 auto 10px;
}

.etapa.checked {
  border-color: rgba(250, 77, 43, 0.32);
  background: #fff7f3;
}

.etapa.checked .circle {
  background: #fa4d2b;
}

.etapa.active {
  box-shadow: 0 14px 28px rgba(250, 77, 43, 0.15);
}

.etapa.active .circle {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(250, 77, 43, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(250, 77, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 77, 43, 0); }
}

.etapa strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.horario {
  text-align: center;
  font-size: 18px;
  margin: 20px 0;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.notificacoes {
  text-align: center;
  margin: 0 0 20px;
}

#btn-ativar-notificacoes {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fa4d2b;
  background: #fff7f3;
  border: 1px solid rgba(250, 77, 43, 0.32);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}

#btn-ativar-notificacoes:disabled {
  cursor: default;
  opacity: 0.75;
}

#resultado-notificacoes {
  font-size: 13px;
  color: #64748b;
  margin: 8px 0 0;
}

#resultado-notificacoes:empty {
  display: none;
}

.pedido-info {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.pedido-info h3 {
  margin: 0 0 10px;
}

.item {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
}

.item:last-child {
  border: none;
}

@media (max-width: 720px) {
  .etapas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  body {
    padding: 14px;
  }

  .etapas {
    grid-template-columns: 1fr;
  }

  .horario,
  .pedido-info {
    padding: 16px;
  }
}
