/* Área do cliente */

.conta-wrap {
  max-width: 880px;
  margin-inline: auto;
}

.conta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.conta-card {
  background: linear-gradient(180deg, #fffaf0, var(--cream));
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.conta-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--leather);
  margin-bottom: 1rem;
}

.conta-card .muted {
  color: var(--mute);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.5rem 0;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(36, 27, 20, 0.12);
}

.timeline li {
  position: relative;
  padding: 0 0 1.25rem 1.25rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.25rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #d6cbb8;
  border: 2px solid var(--cream);
}

.timeline li.is-done::before {
  background: var(--olive);
}

.timeline li.is-current::before {
  background: var(--brick);
  box-shadow: 0 0 0 4px rgba(178, 58, 46, 0.2);
}

.timeline li.is-current strong {
  color: var(--brick);
}

.timeline strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--leather);
}

.timeline span {
  font-size: 0.85rem;
  color: var(--mute);
}

.status-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 3px;
  background: rgba(107, 115, 83, 0.15);
  color: var(--olive);
}

.status-pill.is-producao {
  background: rgba(212, 101, 58, 0.18);
  color: #a04520;
}

.status-pill.is-saiu_entrega {
  background: rgba(59, 42, 30, 0.12);
  color: #3B2A1E;
}

.status-pill.is-novo,
.status-pill.is-confirmado {
  background: rgba(200, 155, 60, 0.2);
  color: #8a6a1e;
}

.status-pill.is-cancelado {
  background: rgba(36, 27, 20, 0.1);
  color: var(--mute);
}

.pedido-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pedido-lista a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: #fffaf0;
  transition: border-color 0.2s ease;
}

.pedido-lista a:hover {
  border-color: rgba(178, 58, 46, 0.4);
}

.pedido-lista strong {
  display: block;
  font-family: var(--font-display);
  color: var(--leather);
}

.pedido-lista small {
  color: var(--mute);
}

.conta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.conta-alert {
  background: rgba(178, 58, 46, 0.1);
  border: 1px solid rgba(178, 58, 46, 0.25);
  color: var(--brick);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.conta-ok {
  background: rgba(107, 115, 83, 0.15);
  color: var(--olive);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.item-obs-exibida {
  display: block;
  margin-top: 0.25rem;
  color: var(--mute);
  font-size: 0.82rem;
}

.conta-obs {
  background: rgba(107, 115, 83, 0.1);
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  color: var(--ink);
  border: 1px solid rgba(107, 115, 83, 0.2);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--olive);
  vertical-align: middle;
}

.live-dot__pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 0 rgba(107, 115, 83, 0.45);
  animation: live-pulse 1.6s ease-out infinite;
}

.live-dot.is-off {
  color: var(--mute);
}

.live-dot.is-off .live-dot__pulse {
  background: #c4b8a4;
  animation: none;
  box-shadow: none;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(107, 115, 83, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(107, 115, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 115, 83, 0); }
}

.status-pill.is-updated {
  animation: status-pop 0.7s ease;
}

@keyframes status-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.conta-card.is-status-flash {
  animation: andamento-flash 0.65s ease;
}

@keyframes andamento-flash {
  0% { background: linear-gradient(180deg, #fffaf0, var(--cream)); }
  35% { background: linear-gradient(180deg, #fff3e0, #f7ebe0); }
  100% { background: linear-gradient(180deg, #fffaf0, var(--cream)); }
}

.timeline li.is-current {
  transition: color 0.3s ease;
}

@media (max-width: 720px) {
  .conta-grid {
    grid-template-columns: 1fr;
  }
}
