/* NC FAQ (schema wrapper) */
.nc-faq-schema {
  border-top: 1px solid #eee;
}

/* pojedyncze Q/A */
.nc-faq-schema .mainEntity {
  border-bottom: 1px solid #eee;
  padding: 14px 0;
}

/* pytanie */
.nc-faq-schema .mainEntity > h4[itemprop="name"] {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ikonka (jeśli dodasz w h4 np. <span class="material-icons">expand_more</span>) */
.nc-faq-schema .mainEntity > h4[itemprop="name"] .material-icons {
  font-size: 20px;
  transition: transform .2s ease;
}

/* odpowiedź */
.nc-faq-schema .acceptedAnswer {
  display: none;
  padding-top: 10px;
}

.nc-faq-schema .acceptedAnswer [itemprop="text"] {
  color: #555;
}

.nc-faq-schema .acceptedAnswer p {
  margin: 0 0 10px;
}

.nc-faq-schema .acceptedAnswer p:last-child {
  margin-bottom: 0;
}

/* stan otwarty (JS doda .is-open na .mainEntity) */
.nc-faq-schema .mainEntity.is-open .acceptedAnswer {
  display: block;
}

.nc-faq-schema .mainEntity.is-open > h4[itemprop="name"] .material-icons {
  transform: rotate(180deg);
}

/* hover */
@media (hover:hover) {
  .nc-faq-schema .mainEntity > h4[itemprop="name"]:hover {
    opacity: .9;
  }
}
.nc-faq-schema .mainEntity > h4[itemprop="name"]::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .65;
  transition: transform .2s ease, opacity .2s ease;
  flex: 0 0 auto;
}

.nc-faq-schema .mainEntity.is-open > h4[itemprop="name"]::after {
  transform: rotate(-135deg);
  opacity: .9;
}
