/* Container */
.myfaq-block {
  margin-top: 24px;
}

/* Each item container */
.myfaq-item {
  margin-bottom: 10px;
}

/* Question button (pill card) */
.myfaq-question {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e1e1e1;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: #222;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
  /* remove native button styling */
  outline: none;
  appearance: none;
}

/* Hover and open states */
.myfaq-question:hover {
  border-color: #c9c9c9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  background-color: #fafafa;
}

.myfaq-item--open .myfaq-question {
  border-color: #00a4e4;
  box-shadow: 0 3px 10px rgba(0,164,228,0.12);
}

/* Focus (keyboard) */
.myfaq-question:focus-visible {
  outline: 2px solid #00a4e4;
  outline-offset: 2px;
}

/* Question text */
.myfaq-question-text {
  flex: 1 1 auto;
  margin-right: 12px;
  word-wrap: break-word;
}

/* Right side + icon */
.myfaq-toggle-indicator {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: #999;
  transition: transform 0.2s ease, color 0.2s ease;
}

.myfaq-item--open .myfaq-toggle-indicator {
  color: #00a4e4;
}

/* Answer block */
.myfaq-answer {
  display: none; /* JS sets to block */
  padding: 8px 18px 16px 18px;
  margin-left: 6px;
  margin-right: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* Answer content (HTML inside) */
.myfaq-answer p {
  margin: 0 0 6px 0;
}

.myfaq-answer ul,
.myfaq-answer ol {
  margin: 4px 0 6px 18px;
}

/* Small screens */
@media (max-width: 575.98px) {
  .myfaq-question {
    padding: 12px 14px;
    font-size: 15px;
  }

  .myfaq-answer {
    padding: 8px 14px 14px 14px;
    font-size: 13px;
  }
}

/* Larger screens */
@media (min-width: 992px) {
  .myfaq-block {
    max-width: 900px;
  }
}
