.tx-tabs {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.tx-tabs__tabs {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.tx-tabs__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 150px;
  flex: 0 0 150px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.tx-tabs__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  color: var(--color-body);
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.tx-tabs__icon {
  flex-shrink: 0;
  display: block;
}

.tx-tabs__brand-icon {
  flex-shrink: 0;
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.tx-tabs__tab.is-active .tx-tabs__label {
  color: var(--color-heading);
}

.tx-tabs__progress {
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background-color: var(--color-border);
}

.tx-tabs__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-color: var(--color-accent);
}

.tx-tabs__tab.is-active.is-running .tx-tabs__fill {
  animation: txTabsFill var(--tx-tabs-ms, 4500ms) linear forwards;
}

.tx-tabs__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  background-color: var(--color-white);
  touch-action: pan-y;
  user-select: none;
}

.tx-tabs__track {
  position: relative;
  width: 100%;
}

.tx-tabs__sizer {
  display: block;
  width: 100%;
  height: auto;
  visibility: hidden;
  pointer-events: none;
}

.tx-tabs__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tx-tabs__img.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.tx-tabs__img.is-prepare {
  transition: none;
}

.tx-tabs__img.is-from-right {
  transform: translate3d(40px, 0, 0);
  opacity: 0;
}

.tx-tabs__img.is-from-left {
  transform: translate3d(-40px, 0, 0);
  opacity: 0;
}

.tx-tabs__img.is-to-left {
  transform: translate3d(-40px, 0, 0);
  opacity: 0;
}

.tx-tabs__img.is-to-right {
  transform: translate3d(40px, 0, 0);
  opacity: 0;
}

@keyframes txTabsFill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@media (width <= 720px) {
  .tx-tabs__tabs {
    gap: 12px;
  }

  .tx-tabs__tab {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    gap: 8px;
  }

  .tx-tabs__label {
    font-size: 14px;
    gap: 4px;
  }

  .tx-tabs__icon {
    width: 14px;
    height: 14px;
  }
}

@media (width <= 480px) {
  .tx-tabs {
    gap: 16px;
  }

  .tx-tabs__tabs {
    gap: 8px;
  }

  .tx-tabs__label {
    font-size: 14px;
    white-space: nowrap;
  }

  .tx-tabs__img.is-from-right,
  .tx-tabs__img.is-to-right {
    transform: translate3d(20px, 0, 0);
  }

  .tx-tabs__img.is-from-left,
  .tx-tabs__img.is-to-left {
    transform: translate3d(-20px, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tx-tabs__img {
    transition: none;
  }

  .tx-tabs__img.is-from-right,
  .tx-tabs__img.is-from-left,
  .tx-tabs__img.is-to-left,
  .tx-tabs__img.is-to-right {
    transform: none;
  }

  .tx-tabs__tab.is-active.is-running .tx-tabs__fill {
    width: 100%;
    animation: none;
  }
}
