/* Páginas do site geradas pelo sistema (curso, lista de cursos, carrinho). Mesmo visual das páginas .html. */

#whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

#whatsapp-button a img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

#whatsapp-button a img:hover {
  transform: scale(1.1);
}

/* Botão de matrícula da página do curso (igual ao das páginas .html) */
.btn-matricula-curso {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff !important;
  padding: 16px 32px;
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-matricula-curso:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.btn-matricula-curso .selo {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .btn-matricula-curso {
    font-size: 16px;
    padding: 14px 24px;
    width: 90%;
    max-width: 400px;
  }
}

.aviso-previa {
  background: #fff3cd;
  color: #664d03;
  text-align: center;
  padding: 10px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  position: relative;
  z-index: 1100;
}

/* Carrinho flutuante (acima do WhatsApp) */
.dps-carrinho-flutuante {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff !important;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.dps-carrinho-flutuante strong {
  display: inline-block;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  text-align: center;
  font-size: 13px;
  line-height: 22px;
}

.dps-carrinho-flutuante:hover {
  background: #1e40af;
}

/* Página do carrinho */
.dps-carrinho {
  padding: 130px 0 60px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1f2937;
}

.dps-carrinho h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.dps-carrinho .dps-sub {
  color: #6b7280;
  margin-bottom: 24px;
}

.dps-carrinho-caixa {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.dps-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.dps-item img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.dps-item-info {
  flex: 1;
  min-width: 0;
}

.dps-item-info a {
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
}

.dps-item-info small {
  display: block;
  color: #6b7280;
}

.dps-item-valor {
  font-weight: 700;
  white-space: nowrap;
}

.dps-remover {
  border: 0;
  background: none;
  color: #b91c1c;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
}

.dps-remover:hover {
  text-decoration: underline;
}

.dps-resumo {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.dps-resumo-linha {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #4b5563;
}

.dps-resumo-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid #e5e7eb;
  margin-top: 12px;
  padding-top: 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

.dps-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  border: 0;
  background: #1d4ed8;
  color: #fff !important;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
}

.dps-btn:hover {
  background: #1e40af;
}

.dps-btn-secundario {
  background: #fff;
  color: #1d4ed8 !important;
  border: 1px solid #c7d2fe;
}

.dps-btn-secundario:hover {
  background: #eef2ff;
}

.dps-aviso {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #eef2ff;
  color: #1e3a8a;
}

.dps-aviso-erro {
  background: #fef2f2;
  color: #991b1b;
}

.dps-vazio {
  text-align: center;
  padding: 48px 20px;
  color: #6b7280;
}

@media (max-width: 576px) {
  .dps-item {
    flex-wrap: wrap;
  }
  .dps-item img {
    width: 64px;
    height: 48px;
  }
}
