/* ── AI FAQ Generator — Frontend Styles (Warehouse-compatible) ── */

/* Section wrapper */
.pf-faq-section {
  margin: 56px 0 40px;
  font-family: inherit;
  color: inherit;
}

.pf-faq-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 8px;
}

/* ── Heading block ── */
.pf-faq-heading {
  text-align: center;
  margin-bottom: 36px;
}

.pf-faq-badge {
  display: inline-block;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.pf-faq-title {
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 8px !important;
  line-height: 1.25 !important;
}

.pf-faq-subtitle {
  font-size: 0.92rem;
  color: #9ca3af;
  margin: 0;
}

/* ── Accordion wrapper ── */
.pf-acc {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}

/* ── Accordion item ── */
.pf-acc-item {
  border-bottom: 1px solid #f3f4f6;
}

.pf-acc-item:last-child {
  border-bottom: none;
}

/* ── Button / header ── */
.pf-acc-btn {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  padding: 18px 22px !important;
  background: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  text-align: left !important;
  cursor: pointer !important;
  font-size: 0.975rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  line-height: 1.45 !important;
  transition: background 0.18s ease, color 0.18s ease !important;
  box-shadow: none !important;
  outline: none !important;
}

.pf-acc-btn:hover {
  background: #f9fafb !important;
  color: #111827 !important;
}

.pf-acc-item.pf-open > .pf-acc-btn {
  background: #f9fafb !important;
  color: #111827 !important;
}

/* Number badge */
.pf-acc-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
  line-height: 1;
}

.pf-acc-item.pf-open > .pf-acc-btn .pf-acc-num {
  background: #111827;
  color: #fff;
}

/* Question text */
.pf-acc-q {
  flex: 1;
}

/* Plus / minus icon */
.pf-acc-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  color: #9ca3af;
  transition: color 0.18s;
}

.pf-acc-icon svg {
  position: absolute;
  top: 2px;
  left: 2px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pf-icon-plus  { opacity: 1;  transform: rotate(0deg); }
.pf-icon-minus { opacity: 0;  transform: rotate(-90deg); }

.pf-acc-item.pf-open .pf-acc-icon { color: #374151; }
.pf-acc-item.pf-open .pf-icon-plus  { opacity: 0;  transform: rotate(90deg); }
.pf-acc-item.pf-open .pf-icon-minus { opacity: 1;  transform: rotate(0deg); }

/* ── Body / answer ── */
.pf-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-acc-answer {
  padding: 2px 22px 20px 64px;
  font-size: 0.94rem;
  color: #4b5563;
  line-height: 1.75;
  border-top: 1px solid #f3f4f6;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .pf-faq-title {
    font-size: 1.3rem !important;
  }

  .pf-acc-btn {
    padding: 14px 16px !important;
    font-size: 0.92rem !important;
    gap: 10px !important;
  }

  .pf-acc-answer {
    padding: 2px 16px 16px 54px;
    font-size: 0.9rem;
  }

  .pf-acc-num {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
  }
}
