/* Main Wrapper */
.dwpt-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  max-width: 450px;
  margin: 20px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Header */
.dwpt-header {
  padding: 20px;
  text-align: center;
}

/* Benefits Section */
.dwpt-benefits, .dwpt-additional-benefits {
  padding: 20px 20px 0 20px;
  border-top: 1px solid #eee;
}
.dwpt-benefits-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  padding-bottom: 20px;
}
.dwpt-benefits-title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #777;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dwpt-benefit-option {
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  transition: border-color 0.3s;
  /* CORREÇÃO AQUI: Layout em 2 colunas */
  width: calc(50% - 8px);
  box-sizing: border-box; /* Garante que padding não afete a largura total */
  flex-grow: 0;
  flex-shrink: 0;
}
.dwpt-benefit-option:hover {
  border-color: #bbb;
}
.dwpt-benefit-option input[type="radio"] {
  display: none;
}
label:has(> input[type="radio"]:checked) {
    border-color: #2196F3;
    background-color: #f5fafe;
}
.dwpt-benefit-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.dwpt-benefit-content img {
  /* CORREÇÃO AQUI: Novo tamanho e formato da imagem */
  width: 150px;
  height: 45px;
  border-radius: 4px; /* Remove o arredondamento de círculo */
  object-fit: cover; /* Mantém a proporção da imagem */
}
.dwpt-benefit-content span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* Total Price Area */
.dwpt-total-price-area {
  background-color: #f9f9f9;
  padding: 25px 20px;
  text-align: center;
  border-top: 1px solid #eee;
}
.dwpt-total-label {
  font-size: 16px;
  color: #555;
  display: block;
  margin-bottom: 5px;
}
.dwpt-total-price {
  font-size: 42px;
  font-weight: 700;
  color: #000;
}
.dwpt-currency, .dwpt-suffix {
  font-size: 0.5em;
  font-weight: normal;
  color: #666;
  vertical-align: middle;
}

/* Features List */
.dwpt-features-list {
  padding: 10px 0;
  border-top: 1px solid #eee;
}
.dwpt-feature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.dwpt-features-list > .dwpt-feature:last-child {
  border-bottom: none;
}
.dwpt-feature-details-wrapper {
  display: flex;
  align-items: center;
  flex-grow: 1;
  margin-right: 15px;
}
.dwpt-feature-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}
.dwpt-feature-details {
  display: flex;
  flex-direction: column;
}
.dwpt-feature-name {
  color: #333;
  font-weight: 500;
}

/* Toggle Switch */
.dwpt-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.dwpt-switch input { opacity: 0; width: 0; height: 0; }
.dwpt-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
.dwpt-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .dwpt-slider { background-color: #2196F3; }
input:checked + .dwpt-slider:before { transform: translateX(20px); }

/* Footer Accordion */
.dwpt-footer {
  position: relative;
  padding: 15px 20px 40px 20px;
  font-size: 13px;
  color: #777;
  border-top: 1px solid #eee;
}
.dwpt-footer-teaser p { margin: 0; color: #777; font-size: 14px; line-height: 1.5; }
.dwpt-footer-toggle { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); background: #f0f0f0; border: 1px solid #e0e0e0; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.dwpt-footer-toggle.rotated { transform: translateX(-50%) rotate(180deg); }
.dwpt-arrow-icon { border: solid #555; border-width: 0 2px 2px 0; display: inline-block; padding: 3px; transform: rotate(45deg); }
.dwpt-footer-full { margin-top: 15px; border-top: 1px dashed #eee; padding-top: 15px; }

/* Action Button */
.dwpt-action { padding: 20px; border-top: 1px solid #eee; }
.dwpt-wrapper > div:first-of-type { border-top: none; }
.dwpt-wrapper > div.dwpt-header + .dwpt-total-price-area, .dwpt-wrapper > div.dwpt-total-price-area + .dwpt-benefits { border-top: none; }
.dwpt-whatsapp-button { display: block; width: 100%; background-color: #25D366; color: white; border: none; padding: 15px; font-size: 16px; font-weight: bold; border-radius: 8px; cursor: pointer; transition: background-color 0.3s; }
.dwpt-whatsapp-button:hover { background-color: #1EBE57; }

/* Estilo para os cards de benefícios não-clicáveis */
.dwpt-benefit-option.non-clickable {
  cursor: default;
  background-color: #fdfdfd;
  border-color: #e0e0e0;
}

.dwpt-benefit-option.non-clickable:hover {
    border-color: #e0e0e0; /* Garante que a borda não mude no hover */
    background-color: #fdfdfd;
}

/* Image Gallery Section */
.dwpt-image-gallery {
  padding: 20px;
  border-top: 1px solid #eee;
}

.dwpt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Cria 5 colunas de largura igual */
  gap: 10px; /* Espaçamento entre as imagens */
  justify-items: center;
}

.dwpt-gallery-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px; /* Leve arredondamento para um visual moderno */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Efeito Tada para a Descrição no Front-end */
.dwpt-description.has-tada-effect {
    cursor: pointer;
    animation: tada 1.2s;
    animation-iteration-count: 2;
    animation-delay: 0.5s;
}

@keyframes tada {
  from {
    transform: scale3d(1, 1, 1);
  }
  10%, 20% {
    transform: scale3d(0.95, 0.95, 0.95) rotate3d(0, 0, 1, -3deg);
  }
  30%, 50%, 70%, 90% {
    transform: scale3d(1.05, 1.05, 1.05) rotate3d(0, 0, 1, 3deg);
  }
  40%, 60%, 80% {
    transform: scale3d(1.05, 1.05, 1.05) rotate3d(0, 0, 1, -3deg);
  }
  to {
    transform: scale3d(1, 1, 1);
  }
}
/* --- NOVOS EFEITOS DE ANIMAÇÃO (FRONT-END) --- */

/* Efeito TADA */
.dwpt-description.effect-tada {
    cursor: pointer;
    animation: dwpt-tada 1.2s;
}

@keyframes dwpt-tada {
  from { transform: scale3d(1, 1, 1); }
  10%, 20% { transform: scale3d(0.95, 0.95, 0.95) rotate3d(0, 0, 1, -3deg); }
  30%, 50%, 70%, 90% { transform: scale3d(1.05, 1.05, 1.05) rotate3d(0, 0, 1, 3deg); }
  40%, 60%, 80% { transform: scale3d(1.05, 1.05, 1.05) rotate3d(0, 0, 1, -3deg); }
  to { transform: scale3d(1, 1, 1); }
}

/* Efeito PULSAR */
.dwpt-description.effect-pulse {
    animation: dwpt-pulse 2s infinite;
}

@keyframes dwpt-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Efeito TEXTO ROTATIVO */
.dwpt-rotating-text-wrapper {
  display: flex;
  justify-content: center;
  text-align: center;
  height: 1.2em; /* Altura para evitar que o layout pule */
  position: relative;
  overflow: hidden;
}
.dwpt-rotating-text-wrapper span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(100%);
  animation: dwpt-rotate-text 12s linear infinite; /* A duração total deve ser (duração por item * número de itens) */
}

/* Define o delay para cada frase aparecer na sequência correta */
.dwpt-rotating-text-wrapper span:nth-child(1) { animation-delay: 0s; }
.dwpt-rotating-text-wrapper span:nth-child(2) { animation-delay: 3s; }
.dwpt-rotating-text-wrapper span:nth-child(3) { animation-delay: 6s; }
.dwpt-rotating-text-wrapper span:nth-child(4) { animation-delay: 9s; }
/* Adicione mais linhas se tiver mais de 4 frases */

@keyframes dwpt-rotate-text {
  0% { transform: translateY(100%); opacity: 0; }
  2%, 23% { transform: translateY(0); opacity: 1; }
  25% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(-100%); opacity: 0; }
}