/* ----------------------------------------------
   WooCommerce Custom Product FAQs - FINAL CSS
   No-scroll accordion / Smooth animation
   ---------------------------------------------- */

/* Main FAQ list wrapper */
.wc-faq-list {
  max-width: 100%;
  margin: 0 auto;
  padding: 8px;
  background: transparent;
  border-radius: 6px;
  font-family: default;
}

/* Single FAQ item */
.wc-faq-item {
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #196F7C;
}

/* FAQ Question Header */
.wc-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 15px;
  font-size: 16px;
  font-weight: 600;
  background: #196F7C;
  color: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .2s ease, color .2s ease;
  position: relative;
}

/* Fix hover / focus / active state always using the same background color */
.wc-faq-question:hover,
.wc-faq-question:focus,
.wc-faq-question:active {
    background: #196F7C;
    color: #ffffff;
}

/* When accordion is open */
.wc-faq-question[aria-expanded="true"] {
    background: #196F7C;
    color: #ffffff;
}


.wc-faq-question.collapsed {
  background: #196F7C;
  color: #ffffff;
}

/* Toggle Icon (Plus / Minus) */
.wc-faq-toggle-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 4px;
  transition: transform .2s ease;
}

.wc-faq-toggle-icon.plus::before { content: "+"; }
.wc-faq-toggle-icon.minus::before { content: "−"; }

/* FAQ Answer Panel */
.wc-faq-answer {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  padding: 0 15px;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;             /* IMPORTANT: no scrollbar */
  background: #ffffff;
  transition:
    max-height .35s ease,
    opacity .25s ease,
    padding .25s ease;
}

/* When answer is open */
.wc-faq-answer[aria-hidden="false"],
.wc-faq-answer.open {
  padding-top: 10px;
  padding-bottom: 5px;
  opacity: 1;
  visibility: visible;
  max-height: 800px;            /* large height for smooth animation */
  overflow: visible;
  font-size: 16px; 
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .wc-faq-question {
    font-size: 13px;
    padding: 12px 14px;
  }
  .wc-faq-answer {
    font-size: 13px;
    padding: 14px;
  }
}

/* Remove mobile tap highlight on FAQ buttons */
.wc-faq-question {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Remove default iOS/Android button active flash */
.wc-faq-question:active {
    background-color: #196F7C !important; /* your same color */
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Remove focus outline on touch devices only */
@media (hover: none) and (pointer: coarse) {
    .wc-faq-question:focus {
        outline: none !important;
        box-shadow: none !important;
    }
}
/* FORCE smaller answer text on mobile */
@media (max-width: 600px) {
  .wc-faq-answer,
  .wc-faq-answer p {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
}
