/* =========================================
   VECTOR — FAQ CPT (Adaptado)
   Baseado no exemplo com transições fluidas
   ========================================= */

.vector-faq-cpt-wrapper {
  display: flex;
  flex-direction: column;
  row-gap: 32px;
  column-gap: 32px;
  width: 100%;
}

/* Intro */
.vector-faq-cpt-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 16px;
  column-gap: 32px;
  width: 100%;
}

.vector-faq-cpt-content {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  column-gap: 8px;
  flex: 1 1 auto;
  min-width: 240px;
}

.vector-faq-cpt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.vector-faq-cpt-icon svg {
  width: auto;
  height: 60px;
  display: block;
}

.vector-faq-cpt-icon i {
  font-size: 60px;
  line-height: 1;
}

.vector-faq-cpt-heading-main {
  margin: 0;
}

.vector-faq-cpt-heading-auxiliar {
  margin: 0;
}

.vector-faq-cpt-text {
  margin: 0;
}

/* Actions / Buttons */
.vector-faq-cpt-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.vector-faq-cpt-item-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.vector-faq-cpt-item-button:focus {
  outline: none;
}

.vector-faq-cpt-item-button-text {
  display: inline-block;
}

.vector-faq-cpt-item-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vector-faq-cpt-item-button-icon svg {
  width: auto;
  height: 16px;
  display: block;
}

.vector-faq-cpt-item-button-icon i {
  font-size: 16px;
  line-height: 1;
}

/* Lista de FAQs */
.vector-faq-cpt-wrapper-items {
  display: flex;
  flex-direction: column;
  row-gap: 0px;
  column-gap: 0px;
  width: 100%;
}

/* Item do FAQ */
.vector-faq-cpt-item {
  width: 100%;
  border-bottom: 1px solid #e5e5e5;
}

/* CRÍTICO: Reseta comportamento padrão do details/summary */
.vector-faq-cpt-item summary {
  list-style: none;
  display: flex;
  /* Força comportamento customizado */
}

.vector-faq-cpt-item summary::-webkit-details-marker {
  display: none;
}

/* Remove a funcionalidade nativa de toggle */
.vector-faq-cpt-item summary::marker {
  display: none;
}

/* Previne o comportamento padrão no Firefox */
.vector-faq-cpt-item summary::-moz-list-bullet {
  list-style-type: none;
}

/* Pergunta (summary) */
.vector-faq-cpt-item-question {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 1em 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border: none;
  background: none;
  color: #7288a2;
  font-size: 1.15rem;
  font-weight: 400;
  transition: color 200ms ease;
}

.vector-faq-cpt-item-question:focus {
  outline: none;
}

.vector-faq-cpt-item-question:hover {
  color: #03b5d2;
}

.vector-faq-cpt-item-question:hover .vector-faq-cpt-item-question-icon {
  color: #03b5d2;
  border-color: #03b5d2;
}

.vector-faq-cpt-item-question-text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1em 1.5em 1em 0;
}

/* Ícone customizado (círculo com + e -) */
.vector-faq-cpt-item-question-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
}

/* Esconde o SVG padrão */
.vector-faq-cpt-item-question-icon svg {
  display: none;
}


/* Estado aberto */
.vector-faq-cpt-item[open] .vector-faq-cpt-item-question {
  color: #03b5d2;
  border-bottom: 1px solid #03b5d2;
}

.vector-faq-cpt-item[open] .vector-faq-cpt-item-question-icon::after {
  height: 0;
}

/* Resposta — altura controlada via JS */

.vector-faq-cpt-item:not(.is-open) .vector-faq-cpt-item-answer {
  padding: 0px !important;
}

.vector-faq-cpt-item-answer {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 300ms ease, opacity 10ms ease;
  will-change: height, opacity;
}


.vector-faq-cpt-item.is-open .vector-faq-cpt-item-answer {
  opacity: 1;
  /* height é setada pelo JS com o valor real */
}

/* Pergunta aberta */
.vector-faq-cpt-item.is-open .vector-faq-cpt-item-question {
  color: #03b5d2;
  border-bottom: 1px solid #03b5d2;
}

/* Ícone — rotaciona quando aberto */
.vector-faq-cpt-item-question-icon {
  transition: transform 300ms ease;
}

.vector-faq-cpt-item.is-open .vector-faq-cpt-item-question-icon {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {

  .vector-faq-cpt-item-answer,
  .vector-faq-cpt-item-question-icon {
    transition: none;
  }
}