.nexo-faq-carousel-section {
  background: var(--nexo-faq-carousel-background, #fff);
  padding: var(--nexo-faq-carousel-section-padding-top, 80px)
    var(--nexo-faq-carousel-section-padding-right, 24px)
    var(--nexo-faq-carousel-section-padding-bottom, 80px)
    var(--nexo-faq-carousel-section-padding-left, 24px);
}

.nexo-faq-carousel-section,
.nexo-faq-carousel-section * {
  box-sizing: border-box;
}

.nexo-faq-carousel-section__container {
  width: min(100%, var(--nexo-faq-carousel-container-width, 1180px));
  margin: 0 auto;
}

.nexo-faq-carousel-section--align-left .nexo-faq-carousel-section__container {
  margin-right: auto;
  margin-left: 0;
}

.nexo-faq-carousel-section--align-right .nexo-faq-carousel-section__container {
  margin-right: 0;
  margin-left: auto;
}

.nexo-faq-carousel-section__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 0 0 var(--nexo-faq-carousel-heading-margin-bottom, 28px);
}

.nexo-faq-carousel-section__title {
  margin: 0;
  padding: 0;
}

.nexo-faq-carousel-section__title-main,
.nexo-faq-carousel-section__title-accent {
  display: block;
  text-transform: uppercase;
}

.nexo-faq-carousel-section__title-main {
  color: var(--nexo-faq-carousel-title-color, #222);
  font-size: var(--nexo-faq-carousel-title-size, 26px);
  font-weight: var(--nexo-faq-carousel-title-weight, 900);
  line-height: var(--nexo-faq-carousel-title-line-height, 1.05);
}

.nexo-faq-carousel-section__title-accent {
  color: var(--nexo-faq-carousel-accent-color, #f75c00);
  font-size: var(--nexo-faq-carousel-accent-size, 24px);
  font-weight: var(--nexo-faq-carousel-accent-weight, 900);
  line-height: 1.05;
}

.nexo-faq-carousel-section__controls {
  display: inline-flex;
  gap: 8px;
}

.nexo-faq-carousel-section__control {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--nexo-faq-carousel-controls-color, #fff);
  font: inherit;
  font-size: 17px;
  line-height: 1;
  background: var(--nexo-faq-carousel-controls-background, #000);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.nexo-faq-carousel-section__control:focus-visible,
.nexo-faq-carousel-section__card-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--nexo-faq-carousel-accent-color, #f75c00) 70%, #fff);
  outline-offset: 3px;
}

.nexo-faq-carousel-section__viewport {
  width: 100%;
  overflow: hidden;
}

.nexo-faq-carousel-section__track {
  display: flex;
  gap: var(--nexo-faq-carousel-track-gap, 14px);
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-padding-inline: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.nexo-faq-carousel-section__track::-webkit-scrollbar {
  display: none;
}

.nexo-faq-carousel-section__card {
  flex: 0 0 var(--nexo-faq-carousel-inactive-card-width, 205px);
  height: var(--nexo-faq-carousel-card-height, 350px);
  color: var(--nexo-faq-carousel-inactive-color, #fff);
  background: var(--nexo-faq-carousel-inactive-bg, #a8a8a8);
  border-radius: var(--nexo-faq-carousel-card-radius, 6px);
  scroll-snap-align: start;
  transition:
    flex-basis 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.nexo-faq-carousel-section__card.is-active {
  flex-basis: var(--nexo-faq-carousel-active-card-width, 350px);
  color: var(--nexo-faq-carousel-active-color, #fff);
  background: var(--nexo-faq-carousel-active-bg, #f75c00);
}

.nexo-faq-carousel-section__card-button {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 26px 22px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
}

.nexo-faq-carousel-section__card.is-active .nexo-faq-carousel-section__card-button {
  justify-content: flex-start;
}

.nexo-faq-carousel-section__question {
  display: block;
  color: inherit;
  font-size: var(--nexo-faq-carousel-question-inactive-size, 18px);
  font-weight: var(--nexo-faq-carousel-question-inactive-weight, 800);
  line-height: 1.12;
}

.nexo-faq-carousel-section__card.is-active .nexo-faq-carousel-section__question {
  font-size: var(--nexo-faq-carousel-question-active-size, 24px);
  font-weight: var(--nexo-faq-carousel-question-active-weight, 800);
}

.nexo-faq-carousel-section__answer {
  display: block;
  color: inherit;
  font-size: var(--nexo-faq-carousel-answer-size, 11px);
  line-height: var(--nexo-faq-carousel-answer-line-height, 1.45);
}

.nexo-faq-carousel-section__answer[hidden] {
  display: none;
}

.nexo-faq-carousel-section__answer > :first-child {
  margin-top: 0;
}

.nexo-faq-carousel-section__answer > :last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .nexo-faq-carousel-section__card {
    flex-basis: var(--nexo-faq-carousel-tablet-inactive-card-width, 190px);
    height: var(--nexo-faq-carousel-tablet-card-height, 330px);
  }

  .nexo-faq-carousel-section__card.is-active {
    flex-basis: var(--nexo-faq-carousel-tablet-active-card-width, 320px);
  }
}

@media (max-width: 640px) {
  .nexo-faq-carousel-section__card {
    flex-basis: var(--nexo-faq-carousel-mobile-inactive-card-width, 240px);
    height: var(--nexo-faq-carousel-mobile-card-height, 320px);
  }

  .nexo-faq-carousel-section__card.is-active {
    flex-basis: var(--nexo-faq-carousel-mobile-active-card-width, 300px);
  }

  .nexo-faq-carousel-section--mobile-stack .nexo-faq-carousel-section__track {
    display: grid;
    overflow: visible;
    scroll-snap-type: none;
  }

  .nexo-faq-carousel-section--mobile-stack .nexo-faq-carousel-section__card,
  .nexo-faq-carousel-section--mobile-stack .nexo-faq-carousel-section__card.is-active {
    width: 100%;
    flex-basis: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nexo-faq-carousel-section__track {
    scroll-behavior: auto;
  }

  .nexo-faq-carousel-section__card {
    transition: none;
  }
}
