.elementor-widget-aew-features-tabs,
.elementor-widget-aew-features-tabs > .elementor-widget-container,
.aew-features {
  width: 100%;
  max-width: none;
}

.aew-features {
  --aew-visible-tabs: 6;
  --aew-tabs-height: 164px;
  --aew-media-min-height: 0px;
  display: flex;
  flex-direction: column;
  direction: rtl;
  overflow: hidden;
}

.aew-features *,
.aew-features *::before,
.aew-features *::after {
  box-sizing: border-box;
}

.aew-features__navigation {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  height: var(--aew-tabs-height);
  overflow: hidden;
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 12px 12px 0 0;
  direction: ltr;
  padding-block: 8px;
}

.aew-features__viewport {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  direction: rtl;
}

.aew-features__tablist {
  display: flex;
  height: 100%;
  direction: rtl;
  transition: transform 320ms cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.aew-features__tab {
  position: relative;
  display: flex;
  flex: 0 0 calc(100% / var(--aew-visible-tabs));
  width: calc(100% / var(--aew-visible-tabs));
  min-width: 0;
  height: 100%;
  padding: 17px 12px 19px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  direction: rtl;
}

.aew-features__tab::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 3px;
  content: "";
  background: #334bff;
  border-radius: 999px 999px 0 0;
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity 180ms ease, transform 220ms ease;
}

.aew-features__tab[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.aew-features__tab:hover,
.aew-features__tab:focus-visible {
  color: inherit;
  background-color: #f5f7fa;
  border-color: transparent;
}

.aew-features__tab:focus-visible,
.aew-features__arrow:focus-visible {
  z-index: 2;
  outline: 2px solid #334bff;
  outline-offset: -3px;
}

.aew-features__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #514cff;
  font-size: 28px;
  line-height: 1;
  background: #f5f7fa;
  border-radius: 9px;
}

.aew-features__icon svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.aew-features__title,
.aew-features__description {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aew-features__title {
  color: #17152b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  white-space: nowrap;
}

.aew-features__description {
  display: -webkit-box;
  max-height: 3.4em;
  color: #737789;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.aew-features__arrow {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 0 48px;
  width: 48px;
  height: 100%;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: #17152b;
  background: #fff;
  border: 0;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.aew-features__arrow:hover,
.aew-features__arrow:focus-visible {
  color: #6b7280;
  background-color: #f5f7fa;
  border-color: transparent;
}

.aew-features__arrow[disabled] {
  cursor: default;
  opacity: .3;
}

.aew-features__arrow svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.aew-features__media,
.aew-features__panel {
  width: 100%;
  min-width: 0;
}

.aew-features__media {
  position: relative;
  overflow: hidden;
  background: #ecedef;
  border-radius: 0 0 12px 12px;
  min-height: var(--aew-media-min-height);
}

.aew-features__panel {
  min-height: var(--aew-media-min-height);
}

.aew-features__panel--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.aew-features__empty-note {
  padding: 16px;
  color: #737789;
  font-size: 13px;
  text-align: center;
}

.aew-features__panel[hidden] {
  display: none !important;
}

.aew-features__image,
.aew-features__video {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}

.aew-features__video,
.aew-features__embed,
.aew-features__embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.aew-features__video {
  object-fit: contain;
  background: #111;
}

.aew-features__embed iframe {
  display: block;
  height: 100%;
  border: 0;
}

@media (max-width: 1024px) {
  .aew-features {
    --aew-visible-tabs: 4;
    --aew-tabs-height: 118px;
    --aew-media-min-height: 376px;
  }

  .aew-features__tab {
    gap: 4px;
    padding: 10px 7px 13px;
  }

  .aew-features__icon {
    width: 34px;
    height: 34px;
    font-size: 23px;
    border-radius: 7px;
  }

  .aew-features__icon svg {
    width: 23px;
    height: 23px;
  }

  .aew-features__title {
    font-size: 12px;
  }

  .aew-features__description {
    font-size: 9px;
    line-height: 1.55;
  }

  .aew-features__arrow {
    display: none;
  }
}

@media (max-width: 767px) {
  .aew-features {
    --aew-visible-tabs: 2;
    --aew-tabs-height: 104px;
    --aew-media-min-height: 370px;
  }

  .aew-features__navigation {
    border-radius: 8px 8px 0 0;
  }

  .aew-features__tab {
    padding: 8px 4px 11px;
  }

  .aew-features__tab::after {
    right: 5px;
    left: 5px;
    height: 2px;
  }

  .aew-features__icon {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .aew-features__icon svg {
    width: 20px;
    height: 20px;
  }

  .aew-features__title {
    font-size: 10px;
  }

  .aew-features__description {
    font-size: 8px;
    line-height: 1.45;
  }

  .aew-features__media {
    min-height: 0;
    border-radius: 0 0 8px 8px;
  }

  .aew-features__panel {
    min-height: 0;
  }

  .aew-features__panel--empty {
    min-height: var(--aew-media-min-height);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aew-features__tablist,
  .aew-features__tab::after {
    transition: none;
  }
}
