.tracking-container {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

/* --- Linha do Tempo (Timeline) --- */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
  padding: 0;
  list-style: none;
}

/* Linha conectora de fundo (Inativa) */
.timeline::before {
  content: "";
  position: absolute;
  top: 98px;
  /* Alinhado exatamente no centro dos checkmarks */
  left: 40px;
  right: 40px;
  height: 6px;
  background-color: #ccc;
  z-index: 1;
}

/* --- Etapas --- */
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Ícones decorativos */
.step-icon {
  font-size: 35px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  filter: grayscale(100%);
  /* Cinza por padrão se não iniciado */
  opacity: 0.4;
  transition: all 0.3s ease;
}

/* Checkmark (Círculo de Status) */
.step-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #ccc;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #ccc;
  transition: all 0.3s ease;
}

/* Texto da legenda */
.step-label {
  margin-top: 5px;
  font-size: 14px;
  color: #777;
  font-weight: bold;
  line-height: 1.1;
  max-width: 120px;
}

/* --- Estados Dinâmicos (Ativo / Concluído) --- */

/* 1. Estado: ATIVO (Etapa atual que está acontecendo) */
.step.active .step-icon {
  filter: grayscale(0%);
  opacity: 1;
}

.step.active .step-check {
  background-color: #fff;
  border: 3px solid #04822a;
  box-shadow: 0 0 0 1px #04822a;
}

.step.active .step-label {
  color: #128a03;
}

/* 2. Estado: CONCLUÍDO (Etapa já finalizada) */
.step.completed .step-icon {
  filter: grayscale(0%);
  opacity: 1;
}

.step.completed .step-check {
  background-color: #04822a;
  box-shadow: 0 0 0 1px #41ab3b;
  color: #fff;
  /* Mostra o símbolo de check */
}

.step.completed .step-label {
  color: #555;
}

/* Linha conectora dinâmica baseada nos passos concluídos */
.step.completed + .step::before {
  content: "";
  position: absolute;
  height: 6px;
  background-color: #04822a;
  top: 98px;
  left: -50%;
  width: 100%;
  z-index: -1;
}

/* --- Botão e Texto de Rodapé --- */
.btn-track {
  background-color: #fff;
  border: 1px solid #000;
  color: #000;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 45px;
  transition: background 0.2s;
}

.btn-track:hover {
  background-color: #f5f5f5;
}

.order-status-text {
  font-size: 22px;
  color: #222;
}

.order-number {
  color: #4caf50;
  font-weight: bold;
}

.listaPedidos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listaUserTodosPedidos {
  display: none;
}

.listaUserTodosPedidos.ativo {
  display: block;
}

.pedidoHeader {
  display: grid;
  grid-template-columns: 120px 180px 1fr 140px 140px;
  gap: 20px;
  padding: 0 20px 12px;
  border-bottom: 1px solid #e9e9e9;
  font-size: 14px;
  font-weight: 600;
  color: #777;
}

.pedidoItem {
  display: grid;
  grid-template-columns: 120px 180px 1fr 140px 140px;
  gap: 20px;
  align-items: center;

  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 20px;
}

.pedidoColuna {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pedidoLabel {
  display: none;
  font-size: 12px;
  color: #777;
  font-weight: 600;
}

/* STATUS */

.statusPedido {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.statusPreparando {
  background: #fff4d6;
  color: #b78103;
}

.statusEnviado {
  background: #e7f1ff;
  color: #1565c0;
}

/* MODAL */

.modalPedido {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transition: 0.2s;
  z-index: 9999;
}

.modalPedido.ativo {
  opacity: 1;
  visibility: visible;
}

.modalPedidoBox {
  width: 95%;
  max-width: 500px;

  background: #fff;
  border-radius: 20px;
  padding: 30px;

  position: relative;
}

.fecharModal {
  position: absolute;
  top: 9px;
  right: 15px;

  border: 0;
  background: #f3f3f3;

  width: 40px;
  height: 40px;

  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

.conteudoPedido {
  height: 90vh;
  overflow-y: scroll;
  margin-top: 20px;
  line-height: 1.8;
}

/* RESPONSIVO */

@media (max-width: 768px) {
  .pedidoHeader {
    display: none;
  }

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

  .pedidoLabel {
    display: block;
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .pedidoHeader {
    display: none;
  }

  .pedidoItem {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .pedidoLabel {
    display: block;
  }
}

.loadingPedido,
.erroPedido {
  padding: 30px;
  text-align: center;
  font-size: 15px;
}

.listaUserTodosPedidos {
  max-height: 0;
  overflow: hidden;

  opacity: 0;

  transition: 0.3s;
}

.listaUserTodosPedidos.ativo {
  max-height: 2000px;

  opacity: 1;
}

.boxAbas {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav-tabs {
  border: none;
  gap: 10px;
}

.nav-tabs .nav-link {
  border: none;
  background: #f1f1f1;
  color: #555;
  border-radius: 10px;
  /* padding: 12px 20px; */
  font-weight: 600;
  transition: 0.3s;
}

.nav-tabs .nav-link:hover {
  background: #e7e7e7;
}

.nav-tabs .nav-link.active {
  background: #000000;
  color: #fff;
}

.conteudoAba {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

/* .pedidoRecusadoBox {
                        /* position: absolute;
                        top: 110px;
                        width: 100%;
                        text-align: left; */

/* background: #fff5f5;

                        border: 1px solid #ffb8b8;

                        border-left: 5px solid #e53935;

                        border-radius: 16px;

                        padding: 20px;

                        display: flex;
                        align-items: flex-start;
                        gap: 18px;

                        animation: fadePedidoRecusado .3s ease; */
/* }  */

.pedidoRecusadoIcon {
  width: 55px;
  height: 55px;

  min-width: 55px;

  border-radius: 50%;

  background: #ffe5e5;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;

  color: #e53935;
}

.pedidoRecusadoConteudo {
  flex: 1;
}

.pedidoRecusadoTitulo {
  font-size: 20px;
  font-weight: 700;

  color: #c62828;

  margin-bottom: -6px;
}

.pedidoRecusadoDescricao {
  color: #6b2d2d;

  font-size: 15px;

  line-height: 1.7;
}

@keyframes fadePedidoRecusado {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
  padding: 0;
  list-style: none;
}

.pedidoRecusadoBox {
  width: 100%;

  flex: 0 0 100%;

  margin-top: 35px;

  background: #fff5f5;

  border: 1px solid #ffb8b8;

  border-left: 5px solid #e53935;

  border-radius: 16px;

  padding: 5px;

  display: flex;
  align-items: center;
  text-align: left;
  gap: 18px;

  box-sizing: border-box;
}

.divLinkTodosPedidos {
  width: 100%;
  text-align: center;
  padding-top: 30px;
}

.pedidoNumeroPedidos {
  margin-top: -32px;
}

/* Cupon */

.receipt-container {
  width: 400px;
  background-color: #ffffff;
  padding: 25px 20px;
  color: #000000;
}

/* Topo / Logo */
.header {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  font-family: "Arial Black", sans-serif;
  font-size: 32px;
  color: #ea1d2c;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}

.logo-sub {
  display: block;
  font-size: 14px;
  color: #ea1d2c;
  margin-top: -4px;
}

.divider-top {
  border-top: 1.5px solid #000000;
  margin-top: 10px;
}

/* Informações Gerais */
.order-title {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  margin: 15px 0;
  line-height: 1.3;
}

.order-title span {
  display: block;
  font-weight: normal;
  font-size: 12px;
}

.section {
  margin-bottom: 0px;
  font-size: 15px;
  line-height: 1.4;
  padding: 5px 0 !important;
}

.section-title {
  font-weight: bold;
  display: block;
  margin-bottom: 2px;
}

.divider {
  border-top: 1px solid #000000;
  margin: 12px 0;
}

/* Tabela de Itens */
.items-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: normal;
  margin-bottom: 5px;
}

.item-row {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.item-qty {
  width: 30px;
  flex-shrink: 0;
}

.item-details {
  flex-grow: 1;
  padding-right: 10px;
}

.item-subtext {
  display: block;
  color: #404040;
  font-size: 12px;
}

.item-price {
  width: 70px;
  text-align: right;
  flex-shrink: 0;
}

/* Valores e Totais */
.totals-section {
  font-size: 14px;
  line-height: 1.4;
}

.total-row {
  display: flex;
  justify-content: space-between;
}

.bold-total {
  font-weight: bold;
}

/* Avisos e Observações */
.payment-info {
  font-size: 14px;
  line-height: 1.4;
}

.payment-alert {
  margin-top: 4px;
}
