@charset "UTF-8";

/* ===== Desktop: 4 columns ===== */
#faq_btn01 + div .content_wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* centers the 2nd row when it has fewer buttons */
  gap: 16px;
}

#faq_btn01 + div .content_wrapper > a {
  display: block;
  width: calc((100% - 48px) / 4) !important;   /* 4 columns, 3 gaps of 16px; overrides inline width */
  min-width: 0;
  max-width: none;
  margin: 0;
  text-align: center;
}

#faq_btn01 + div .content_wrapper > a span {
  text-align: center;
  padding-left: 25px;    /* same as the right padding, so the text is truly centered */
  padding-right: 25px;
}

/* merged state: 1st block gets the bottom spacing, 2nd block is hidden */
#faq_btn01 + div.is-merged {
  padding-bottom: 30px !important;
}

#faq_btn01 + div.is-merged + #faq_btn_02 + div {
  display: none;
}

/* ===== Smartphone: 2 columns (below 768px) ===== */
@media screen and (max-width: 767px) {
  #faq_btn01 + div .content_wrapper {
    gap: 10px;
  }

  #faq_btn01 + div .content_wrapper > a {
    width: calc((100% - 10px) / 2) !important;   /* 2 columns, 1 gap of 10px */
  }

  #faq_btn01 + div .content_wrapper > a span {
    padding: 10px 28px 12px;   /* top, left/right, bottom */
    font-size: 1.3rem;
  }
}