.text-with-icons__title-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  text-align: center;
}

.text-with-icons__title {
  margin: 0;
}

.text-with-icons__body {
  width: 100%;
}

.text-with-icons__grid {
  display: none;
  gap: var(--tti-gap, 1.25rem);
  justify-content: var(--tti-justify, center);
  width: 100%;
}

.text-with-icons__item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: var(--tti-align, center);
  text-align: var(--tti-text-align, center);
}

.text-with-icons__item--align-start {
  --tti-align: flex-start;
  text-align: start;
}

.text-with-icons__item--align-center {
  --tti-align: center;
  text-align: center;
}

.text-with-icons__icon-surface {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.text-with-icons__icon-surface--square {
  padding: 0.75rem;
  border-radius: 0.375rem;
}

.text-with-icons__icon-surface--circle {
  padding: 0.75rem;
  border-radius: 50%;
}

.text-with-icons__icon-inner,
.text-with-icons__icon--plain {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.text-with-icons__icon--plain {
  width: fit-content;
}

.text-with-icons__svg {
  display: block;
  width: var(--tti-icon-mobile, 24px);
  height: var(--tti-icon-mobile, 24px);
}

.text-with-icons__icon--custom {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.text-with-icons__custom-icon {
  width: var(--tti-icon-mobile, 24px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.text-with-icons__text {
  width: 100%;
  max-width: 42rem;
}

.text-with-icons__item--align-center .text-with-icons__text {
  margin-inline: auto;
}

.text-with-icons__heading {
  margin: 0 0 0.25rem;
}

.text-with-icons__content {
  margin: 0;
}

.text-with-icons__content :first-child {
  margin-top: 0;
}

.text-with-icons__content :last-child {
  margin-bottom: 0;
}

.text-with-icons__carousel {
  width: 100%;
}

.text-with-icons__track {
  width: 100%;
  max-width: 100%;
  gap: var(--tti-gap, 1.25rem);
  /* flex-start required: theme-carousel scrolls via slide.offsetLeft; center justify breaks scroll/goTo */
  justify-content: flex-start;
}

/* One slide per view so pager index matches scroll position (theme-carousel totalPage / goTo) */
.text-with-icons__slide {
  box-sizing: border-box;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.text-with-icons__slide > * {
  max-width: 100%;
}

.text-with-icons__pagers {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1rem;
}

.text-with-icons__pager {
  width: 8px;
  height: 8px;
  padding: 0;
  cursor: pointer;
  background-color: rgba(var(--color-text), 0.25);
  border: 0;
  border-radius: 50%;
  transition: transform 0.2s, background-color 0.2s;
}

.text-with-icons__pager.is-active {
  background-color: rgba(var(--color-text), 0.7);
  transform: scale(1.15);
}

@media screen and (min-width: 960px) {
  .text-with-icons__grid {
    display: grid;
  }

  .text-with-icons__svg {
    width: var(--tti-icon-desktop, 32px);
    height: var(--tti-icon-desktop, 32px);
  }

  .text-with-icons__custom-icon {
    width: var(--tti-icon-desktop, 32px);
  }
}
