.first-order-faq {
  color: rgb(var(--color-text));
  background: rgb(var(--color-background));
}

.first-order-faq__inner {
  display: grid;
  gap: 28px;
}

.first-order-faq__eyebrow,
.first-order-faq__heading,
.first-order-faq__description {
  margin: 0;
}

.first-order-faq__eyebrow {
  color: rgb(var(--first-order-faq-accent));
  font-family: var(--sort-body-font);
  font-size: var(--first-order-faq-eyebrow-size-mobile);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.first-order-faq__heading {
  margin-top: 12px;
  font-size: var(--first-order-faq-heading-size-mobile);
  font-weight: var(--sort-title-font-weight, 700);
  line-height: 1.1;
  white-space: pre-line;
}

.first-order-faq__description {
  margin-top: 15px;
  font-family: var(--sort-body-font);
  font-size: var(--first-order-faq-description-size-mobile);
  line-height: 1.55;
  white-space: pre-line;
}

.first-order-faq__link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 3px;
  margin-top: 18px;
  color: inherit;
  font-family: var(--sort-body-font);
  font-size: var(--first-order-faq-link-size-mobile);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.first-order-faq__link-icon {
  flex: 0 0 auto;
}

.first-order-faq__link:focus-visible {
  outline: 2px solid rgb(var(--first-order-faq-accent));
  outline-offset: 4px;
}

.first-order-faq__item {
  border-bottom: 1px solid rgb(var(--first-order-faq-divider));
}

.first-order-faq__item summary {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding-block: 15px;
  font-family: var(--sort-body-font);
  font-size: var(--first-order-faq-question-size-mobile);
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.first-order-faq__item summary::-webkit-details-marker {
  display: none;
}

.first-order-faq__toggle {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.first-order-faq__toggle::before,
.first-order-faq__toggle::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 14px;
  height: 2px;
  content: "";
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.first-order-faq__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.first-order-faq__item[open] .first-order-faq__toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.first-order-faq__answer {
  padding: 0 34px 18px 0;
  font-family: var(--sort-body-font);
  font-size: var(--first-order-faq-answer-size-mobile);
  line-height: 1.7;
  opacity: 0.8;
}

.first-order-faq__answer > :first-child {
  margin-top: 0;
}

.first-order-faq__answer > :last-child {
  margin-bottom: 0;
}

@media (min-width: 960px) {
  .first-order-faq__eyebrow { font-size: var(--first-order-faq-eyebrow-size-desktop); }
  .first-order-faq__heading { font-size: var(--first-order-faq-heading-size-desktop); }
  .first-order-faq__description { font-size: var(--first-order-faq-description-size-desktop); }
  .first-order-faq__link { font-size: var(--first-order-faq-link-size-desktop); }
  .first-order-faq__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 64px;
  }

  .first-order-faq__item summary {
    min-height: 68px;
    font-size: var(--first-order-faq-question-size-desktop);
  }

  .first-order-faq__answer { font-size: var(--first-order-faq-answer-size-desktop); }
}

@media (prefers-reduced-motion: reduce) {
  .first-order-faq__toggle::before,
  .first-order-faq__toggle::after {
    transition: none;
  }
}
