/**
 * wg/faq-accordion block front-end styles (the accordion itself; the
 * sidebar page layout lives in faq-page.css).
 */
.wg-faq-block {
  width: 100%;
}

.faq-header {
  text-align: center;
  margin: 0 0 40px;
}

.accordion-faq {
  border-top: 1px solid #dbe4ef;
}

.acc-item {
  border-bottom: 1px solid #dbe4ef;
}

.acc-q {
  margin: 0;
}

.acc-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 50px 1fr 30px;
  gap: 0;
  align-items: center;
  padding: 20px 8px 20px 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 0;
  font: inherit;
  text-align: left;
  color: #17243a;
  cursor: pointer;
}
.acc-trigger:focus {
  outline: 2px solid #0579ff;
  outline-offset: 2px;
}

.acc-item[data-open=true] > .acc-q > .acc-trigger {
  padding-left: 0;
}

.acc-q-num {
  color: #1bb8f5;
  font-weight: 700;
  font-size: 16px;
}

.acc-q-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.acc-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #cbd7e6;
  justify-self: end;
  color: #26344d;
  background: #fff;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.acc-item[data-open=true] .acc-chev {
  background: #05070d;
  color: #fff;
  border-color: #05070d;
  transform: rotate(180deg);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.acc-item[data-open=true] > .acc-panel {
  grid-template-rows: 1fr;
}

.acc-body-wrap {
  overflow: hidden;
}

.acc-body-shell {
  padding: 0 0 28px 50px;
}

.acc-body {
  font-size: 16px;
  line-height: 1.65;
  color: #435574;
}
.acc-body p {
  margin: 0 0 14px;
}
.acc-body p:last-child {
  margin-bottom: 0;
}
.acc-body figure {
  max-width: 100%;
  margin: 18px 0;
}
.acc-body iframe {
  max-width: 100%;
}
.acc-body iframe[src*="youtube.com"], .acc-body iframe[src*="youtube-nocookie.com"], .acc-body iframe[src*="youtu.be"], .acc-body iframe[src*="vimeo.com"] {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  margin: 18px 0;
  border: 0;
}
.acc-body .wp-video,
.acc-body .wp-block-embed,
.acc-body .wp-block-embed__wrapper {
  max-width: 100%;
}

@media (max-width: 640px) {
  .faq-title {
    font-size: 34px;
  }
  .faq-sub {
    font-size: 15px;
  }
  .acc-trigger {
    grid-template-columns: 40px 1fr 30px;
    padding: 18px 0;
  }
  .acc-q-text {
    font-size: 18px;
  }
  .acc-body-shell {
    padding-left: 40px;
  }
}
