/* inc/blocks/faq/faq.css */

.envrad-faq {
  width: 100%;
}

.envrad-faq__item {
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.envrad-faq__question {
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.envrad-faq__question-text {
  flex: 1 1 auto;
  min-width: 0;
  color: #555;
  display: block;
  font-family: "Montserrat Semibold", sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 600;
  padding: 1.2rem 0rem;
}

@media screen and (min-width: 990px) {
    .envrad-faq__question-text {
        font-size: 1.6rem;
        padding: 2rem 2rem 2rem 0rem;
    }
}

.envrad-faq__icon-wrap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.envrad-faq__icon {
  display: inline-block;
  fill: currentColor;
  height: 100%;
  width: 100%;
}

.envrad-faq__icon--minus {
  display: none;
}

.envrad-faq__item.is-open .envrad-faq__icon--plus {
  display: none;
}

.envrad-faq__item.is-open .envrad-faq__icon--minus {
  display: inline-block;
}

.envrad-faq__answer {
  height: 0px;
  opacity: 0;
  overflow: hidden;
  will-change: height, opacity;
}

.envrad-faq__answer-inner {
  padding: 0.2rem 0rem 1.8rem 0rem;
}

@media screen and (min-width: 990px) {
  .envrad-faq__answer-inner {
    padding: 0.2rem 2rem 1.8rem 0;
  }
}

/* Focus styles */
.envrad-faq__question:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .envrad-faq__answer {
    transition: none !important;
  }
}

/* Editor-only: keep answers visible/editable even before JS initializes */
.block-editor-page .envrad-faq__answer,
.editor-styles-wrapper .envrad-faq__answer {
  height: auto !important;
  opacity: 1 !important;
  overflow: visible !important;
}

.faq-plus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='11' width='16' height='1' rx='1' fill='%23333333'/%3E%3Crect x='11' y='4' width='1' height='16' rx='1' fill='%23333333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  width: 36px;
  height: 36px;
  background-color: transparent; 
  border-radius: 0;
}
.faq-minus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='11' width='16' height='1' rx='1' fill='%23333333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  width: 36px;
  height: 36px;
  background-color: transparent; 
  border-radius: 0;
}
