/* Structure only — inherit typography/colors from the theme */
.mfm-faq-container{
  margin-bottom: 20px;
}

.mfm-faq-item{
  /* border-bottom: 1px solid rgba(0,0,0,.12); */
  padding: 15px 0;
}

.mfm-faq-question{
  font: inherit;
  color: inherit;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mfm-faq-question:hover{
  text-decoration: underline; /* theme-safe hover state */
}

.mfm-faq-question::after{
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  transition: transform 0.3s ease;
}

.mfm-faq-item.active .mfm-faq-question::after{
  transform: rotate(180deg);
}

.mfm-faq-answer{
  display: none;
  padding: 12px 0 5px 0;
  color: inherit;
  line-height: inherit;
}

.mfm-faq-item.active .mfm-faq-answer{
  display: block;
}

/* Embedded FAQ "card" look */
.mfm-faq-wrapper.mfm-faq-embed .mfm-faq-item{
  position: relative; /* needed for the corner label */
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
  background: rgba(0,0,0,.02);
}

.mfm-faq-wrapper.mfm-faq-embed .mfm-faq-answer p,
.mfm-faq-wrapper.mfm-faq-embed .mfm-faq-answer ul {
  font-size: 90%;
  line-height: 1.4;
}

/* Hide FAQs beyond the limit, but keep in DOM */
.mfm-faq-item.mfm-hidden-faq {
  display: none;
}

.mfm-faq-wrapper.mfm-faq-expanded .mfm-faq-item.mfm-hidden-faq {
  display: block;
}

/* Optional: make the button fit your style */
.mfm-faq-more-wrap {
  margin-bottom: 12px;
}

.mfm-faq-more-btn {
  display: inline-block;
  cursor: pointer;
  border: 1px solid #ddd;
  background: #fff;
  color:black;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.mfm-faq-wrapper.mfm-faq-embed .mfm-faq-item,
.mfm-faq-wrapper.mfm-faq-group .mfm-faq-item {
  position: relative;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
  background: rgba(0,0,0,.02);
}