/* ===============================
   BVGN — Totais (resumo de preços)
   =============================== */

/* Cartão dos totais */
.bvgn-totais {
  grid-column: 1 / -1;
  max-width: 560px;
  width: 100%;
  margin: 24px auto 0;
  padding: 20px;
  background: #ffffff;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);

  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Título (opcional) */
.bvgn-totais-titulo {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #1f2937;
  margin: 0 0 6px;
}

/* Linha padrão (label + valor) */
.bvgn-linha {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: 0.95rem;
  color: #374151;
}

/* Total (em destaque) */
.bvgn-total {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  border-top: 1px dashed #d1d5db;
  margin-top: 4px;
  padding-top: 8px;
}

.bvgn-totais-cotacao {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.bvgn-totais-cotacao .bvgn-totais {
  flex: 1 1 100%;
  margin: 0;
}

.bvgn-totais-cotacao .bvgn-cotacao {
  flex: 1 1 100%;
  margin: 0;
  display: flex;
  justify-content: center;
}

.bvgn-cotacao .bvgn-btn {
  width: 100%;
  max-width: 480px;
}

/* caixa “Taxas: R$ …” destacada mas discreta */
.bvgn-totais .bvgn-taxas{
  order: 20; /* aparece antes do subtotal */
}

/* lista detalhada de taxas logo depois */
.bvgn-totais .bvgn-taxas-lista{ order: 21;}
.bvgn-totais .bvgn-subtotal{ order: 30; }
.bvgn-totais .bvgn-total{ order: 40;}



/* Mobile */
@media (max-width: 640px) {
  .bvgn-totais {
    padding: 16px;
    gap: 12px;
  }

  .bvgn-linha {
    font-size: 0.93rem;
  }

  .bvgn-total {
    font-size: 1.1rem;
  }

  .bvgn-totais-cotacao {
    flex-direction: column;
    align-items: stretch;
  }

  .bvgn-totais-cotacao .bvgn-cotacao {
    justify-content: stretch;
  }
}

/* ===== Bloco de resumo de cotação (organizado e responsivo) ===== */
.bvgn-resumo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.95rem;
  color: #374151;
}

.bvgn-resumo .resumo-linha {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed #e5e7eb;
  padding: 6px 0;
  flex-wrap: wrap;
  gap: 4px;
}

.bvgn-resumo .resumo-label {
  font-weight: 500;
  color: #6b7280;
  flex: 1 1 50%;
}

.bvgn-resumo .resumo-valor {
  font-weight: 600;
  text-align: right;
  flex: 1 1 50%;
  min-width: 120px;
}

.bvgn-resumo .total .resumo-label,
.bvgn-resumo .total .resumo-valor {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.bvgn-resumo .resumo-valor.destaque {
  color: #0073aa;
}

/* Responsivo para telas pequenas */
@media (max-width: 480px) {
  .bvgn-resumo {
    font-size: 0.92rem;
    gap: 8px;
  }

  .bvgn-resumo .resumo-linha {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
  }

  .bvgn-resumo .resumo-label,
  .bvgn-resumo .resumo-valor {
    flex: unset;
    width: 100%;
    text-align: left;
  }

  .bvgn-resumo .resumo-valor {
    font-weight: 600;
    margin-top: 2px;
  }

  .bvgn-resumo .total .resumo-label,
  .bvgn-resumo .total .resumo-valor {
    font-size: 1rem;
  }
}

