.faq-block {
  margin: 1.5rem 0;
}

.faq-block__title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.faq-block__intro {
  margin: 0 0 1rem;
  color: #4b5563;
}

.faq-item {
  border: 1px solid #d8dee6;
  border-radius: 5px;
  background: #fff;
  margin-bottom: 1em;
}

.faq-item:first-child {
  border-top: 0;
}

.faq-item__question {
  margin: 0;
}

.faq-item__trigger {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: #111827;
  padding: 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;  
}

.faq-item__trigger:focus , .faq-item__trigger:hover {
  background-color: #f4f4f4;
  color: #111827;
}

.faq-item__trigger:focus-visible {
  outline: 2px solid #0b5ed7;
  outline-offset: 3px;
  border-radius: 6px;
}

.faq-item__icon {
  width: 1.2rem;
  text-align: center;
  flex: 0 0 auto;
  color: #0b5ed7;
  font-weight: 700;
}

.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 180ms ease, opacity 180ms ease;
  padding: 0;
  color: #1f2937;
}

.faq-item.is-open .faq-item__answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item__answer-inner {
  overflow: hidden;
  padding: 1em;
}

.faq-item__answer-inner > *:first-child {
  margin-top: 0;
}

.faq-item__answer-inner > *:last-child {
  margin-bottom: 0;
}

.faq-type-flat .faq-item__trigger {
  cursor: default;
}

.faq-type-flat .faq-item__answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

@media (max-width: 640px) {
  .faq-block {
    padding: 0.85rem;
  }

  .faq-item__trigger {
    padding: 0.8rem 0;
    font-size: 0.98rem;
  }
}
