/* ===============================
   CARRINHO PERSONALIZADO - ESTILO BASE
================================== */
/* Botões do carrinho organizados em coluna */
.kslfe53fc6 {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 30px;
}

.ksl0eb6750 {
  flex: 1 1 60%;
  min-width: 300px;
  width: 100%;
}

/* ======== CARD DE RESUMO ======== */
.ksl11b8bab {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 300px;
}

.ksl11b8bab h3 {
  font-size: 22px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.linha-info {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
  color: #000;
}

.total-final {
  border-top: 2px solid #ccc;
  padding-top: 12px;
  font-size: 16px;
}

/* ===== Cupom ===== */
.kslf6fc584 {
  background: #f1f1f1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kslf6fc584 button {
  background: none;
  border: none;
  color: #dc3545;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

#btn-toggle-cupom {
  background: none;
  border: none;
  color: #0071a1;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

#form-cupom {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}
#form-cupom.show {
  max-height: 150px;
  opacity: 1;
  margin-top: 10px;
}

.ksl32e5e89 input {
  padding: 2px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-right: 10px;
  margin-bottom: 5px;
}

/* ===== Botões de ação ===== */
.botoes-carrinho {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.botoes-carrinho {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  background-color: #0071a1;
  color: white;
  text-decoration: none;
  transition: background 0.2s ease;
  width: 100%;
}
.button:hover {
  background-color: #005b84;
}

/* Icones com ::before se preferir */
.icon-checkout::before {
  content: "🛍️";
}
.icon-shop::before {
  content: "↩️";
}

@media (max-width: 768px) {
  .kslfe53fc6 {
    flex-direction: column;
  }

  .ksl11b8bab {
    min-width: 100%;
  }
  .ksl529f1b9 {
    width: 100%;
  }
}

/* ===============================
   BOTÕES DO CARRINHO
================================== */
.botoes-carrinho a.button,
.botoes-carrinho button.button {
  padding: 2px 14px;
  background-color: #ffffff;
  color: #000000;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  border: 1px solid #666;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.botoes-carrinho a.button:hover,
.botoes-carrinho button.button:hover {
  background-color: #070431;
  color: white;
}

.linha-info.desconto .desconto-valor {
  color: #28a745;
  font-weight: 600;
}

/* ===============================
   CUPOM - FORMULÁRIO
================================== */
/* ===============================
   FORMULÁRIO DE CUPOM
================================== */
.form-cupom-wrapper {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Definição movida para carrinho-cupom.css para evitar duplicação */

/* Definições do botão movidas para carrinho-cupom.css para evitar duplicação */

/* Indicador de carregamento */
#ksl3c1b341 {
  min-height: 24px;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #0071a1;
}

.loader {
  width: 16px;
  height: 16px;
  border: 2px solid #0071a1;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile: stack inputs */
@media (max-width: 480px) {
  .form-cupom-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  /* Definição responsiva movida para carrinho-cupom.css */
}

/* ===============================
   CUPONS APLICADOS
================================== */
.cupons-aplicados {
  margin-top: 10px;
  font-size: 16px;
}

.cupom-item {
  display: inline-block;
  background: #f1f1f1;
  padding: 6px 10px;
  margin: 5px;
  border-radius: 4px;
}

.cupom-item button.ksld4ea73a {
  background: transparent;
  border: none;
  color: #c00;
  font-weight: bold;
  margin-left: 8px;
  cursor: pointer;
}

/* ===============================
   TOAST CONTAINER (EMPILHÁVEL)
================================== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: auto;
  max-width: 100%;
}

/* ===============================
   TOAST INDIVIDUAL
================================== */
.toast {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  min-width: 260px;
  max-width: 320px;
  width: 100%;
}
.toast .toast-text {
  white-space: nowrap; /* permite quebra de linha */
  word-break: break-word; /* quebra mesmo palavras longas */
  flex-grow: 1;
  line-height: 1.4;
}

/* Ícones SVG */
.toast svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Botão "×" */
.toast .close-toast {
  background: none;
  border: none;
  color: white;
  margin-left: auto;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
}

/* TOAST VARIANTES */
.toast.success {
  background-color: #28a745;
}
.toast.error {
  background-color: #dc3545;
}
.toast.info {
  background-color: #007bff;
}

/* ===============================
   ANIMAÇÕES
================================== */
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* ===============================
   RESPONSIVO
================================== */
@media (max-width: 600px) {
  .toast-container {
    right: 10px;
    left: 10px;
    align-items: center;
  }

  .toast {
    width: 100%;
    max-width: 100%;
  }
}

.ksl31ac0e6 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  color: #0071a1;
}

.ksl31ac0e6 .loader {
  width: 16px;
  height: 16px;
  border: 2px solid #0071a1;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-mini {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top: 2px solid #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/**/
.ksl6c1e8c9 {
  margin-top: 10px;
  line-height: 1.4;
}

.ksl6c1e8c9 .linha-preco {
  font-size: 14px;
  color: #555;
}

.ksl6c1e8c9 .linha-preco strong {
  font-weight: 500;
  color: #333;
}

.linha-total {
  font-size: 14px;
  font-weight: bold;
  color: #000653;
  margin-top: 6px;
}

/* esvaziar carrinho*/
.ksl884a518 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ksld7e4c40 {
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
}

.ksld7e4c40:hover {
  color: #dc3545;
  text-decoration: underline;
}

.btn-finalizar {
  background-color: #249c00 !important;
  color: white !important;
}

.btn-finalizar:hover {
  background-color: #155d8c !important;
  border-color: #0f4a6b !important;
  transform: translateY(-1px) !important;
}

@media screen and (max-width: 540px) {
  .ksl884a518 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
  }
}

/* Desktop (padrão) */
.kslb58f633 {
  margin-top: 8px;
  padding-left: 170px; /* alinha com ksl9138a01 após a imagem */
  max-width: 600px;
}

@media (max-width: 768px) {
  .kslb58f633 {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    margin-top: 16px;
  }

  .ksl529f1b9 {
    width: 100%;
    display: block;
    text-align: center;
  }
}
