/* Elementor owns the outer width and spacing. */
.elementor-widget-ips_autoplay_tabs_process,
.elementor-widget-ips_autoplay_tabs_process > .elementor-widget-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
}

.ips-atp {
  --ips-atp-component-height: 560px;
  --ips-atp-layout-gap: 32px;
  --ips-atp-left-gap: 64px;
  --ips-atp-tab-content-gap: 16px;
  --ips-atp-number-width: 48px;
  --ips-atp-tab-column-gap: 16px;
  --ips-atp-image-duration: 600ms;
  --ips-atp-description-duration: 800ms;
  --ips-atp-image-offset: 30px;
  --ips-atp-autoplay-device: 1;
  --ips-atp-motion-device: 1;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: inherit;
  color: #000;
  background: transparent;
  overflow: hidden;
}

.ips-atp,
.ips-atp *,
.ips-atp *::before,
.ips-atp *::after {
  box-sizing: border-box;
}

.ips-atp__inner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  margin-inline: auto;
}

.ips-atp__component {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--ips-atp-layout-gap);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
}

.ips-atp__left {
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--ips-atp-left-gap);
  width: 50%;
  min-width: 0;
}

.ips-atp__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 512px;
  min-width: 0;
}

.ips-atp__eyebrow {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 0 8px;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
  text-transform: uppercase;
}

.ips-atp__heading {
  width: 100%;
  margin: 0 0 8px;
  color: #000;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.ips-atp__description {
  width: 100%;
  margin: 0;
  color: #444;
  font-size: 16px;
  line-height: 1.5;
}

.ips-atp__description > :first-child,
.ips-atp__tab-description > :first-child {
  margin-top: 0;
}

.ips-atp__description > :last-child,
.ips-atp__tab-description > :last-child {
  margin-bottom: 0;
}

.ips-atp__tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 512px;
  min-width: 0;
}

.ips-atp__tab {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ips-atp__tab:last-child {
  margin-bottom: 0;
}

.ips-atp__tab-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--ips-atp-number-width)) minmax(0, 1fr);
  align-items: start;
  column-gap: var(--ips-atp-tab-column-gap);
  width: 100%;
  min-width: 0;
}

.ips-atp__number,
.ips-atp__tab-content,
.ips-atp__tab-title,
.ips-atp__tab-description-wrap,
.ips-atp__tab-description-inner,
.ips-atp__tab-description {
  display: block;
  min-width: 0;
}

.ips-atp__number {
  width: 100%;
  color: #222;
  font-size: 16px;
  line-height: 1.5;
}

.ips-atp__tab-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ips-atp-tab-content-gap);
  width: 100%;
}

.ips-atp__tab-title {
  width: 100%;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.ips-atp__tab-description-wrap {
  display: block;
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height var(--ips-atp-description-duration) cubic-bezier(0.22, 1, 0.36, 1),
    opacity var(--ips-atp-description-duration) ease;
  will-change: max-height, opacity;
}

.ips-atp__tab-description-inner {
  min-height: 0;
  overflow: hidden;
}

.ips-atp__tab-description {
  width: 100%;
  color: #444;
  font-size: 16px;
  line-height: 1.5;
}

.ips-atp__tab.is-active .ips-atp__tab-description-wrap {
  opacity: 1;
}

/* The initially active description remains visible before JavaScript is ready. */
.ips-atp:not(.is-ready) .ips-atp__tab.is-active .ips-atp__tab-description-wrap {
  max-height: none;
}

.ips-atp__progress {
  position: relative;
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 16px;
  border-radius: 20px;
  background: #f2f2f2;
  overflow: hidden;
}

.ips-atp__progress-fill {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--ips-atp-item-accent, #7e7e7e);
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  transform-origin: left center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.ips-atp.is-autoplay .ips-atp__tab.is-active .ips-atp__progress-fill {
  transition: none;
}

.ips-atp:not(.is-autoplay) .ips-atp__tab.is-active .ips-atp__progress-fill,
.ips-atp.is-complete .ips-atp__tab.is-active .ips-atp__progress-fill {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.ips-atp__tab:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.ips-atp__media {
  display: flex;
  flex: 1 1 50%;
  align-items: flex-end;
  justify-content: stretch;
  width: 50%;
  min-width: 0;
  min-height: 480px;
}

.ips-atp__panels {
  position: relative;
  width: 82%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: inherit;
  margin: 0;
  border-radius: 4px;
  background: #f2f2f2;
  overflow: hidden;
  isolation: isolate;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.ips-atp__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  -webkit-transform: translate3d(0, var(--ips-atp-image-offset), 0);
  transform: translate3d(0, var(--ips-atp-image-offset), 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: opacity, transform;
  transition:
    opacity var(--ips-atp-image-duration) cubic-bezier(0.22, 1, 0.36, 1),
    transform var(--ips-atp-image-duration) cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.ips-atp__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.ips-atp__panel.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.ips-atp__picture,
.ips-atp__image {
  display: block;
  width: 100%;
  height: 100%;
}

.ips-atp__image {
  max-width: none;
  object-fit: cover;
  object-position: var(--ips-atp-image-position, center center);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.ips-atp[data-motion="off"] .ips-atp__panel {
  -webkit-transform: none;
  transform: none;
  transition: none;
}

/* Hides the whole image column entirely when the active tab's image is
   turned off (per-tab "Show Image" switch), instead of leaving an empty
   placeholder box in its place. The left column explicitly takes over the
   full row width (the "Max Width When Image Hidden" control then governs
   how wide the intro/tabs content itself grows inside that space). */
.ips-atp.is-media-hidden .ips-atp__media {
  display: none;
}

.ips-atp.is-media-hidden .ips-atp__left {
  flex-basis: 100%;
  width: 100%;
}

@media (max-width: 1024px) {
  .ips-atp {
    --ips-atp-component-height: 520px;
    --ips-atp-number-width: 44px;
    --ips-atp-image-offset: 24px;
  }

  .ips-atp__left {
    --ips-atp-left-gap: 48px;
  }

  .ips-atp__media {
    min-height: 420px;
  }

  .ips-atp__panels {
    width: 90%;
  }

  .ips-atp__image {
    object-position: var(--ips-atp-image-position-tablet, var(--ips-atp-image-position, center center));
  }
}

@media (max-width: 767px) {
  .elementor-widget-ips_autoplay_tabs_process,
  .elementor-widget-ips_autoplay_tabs_process > .elementor-widget-container {
    height: auto;
  }

  .ips-atp {
    --ips-atp-component-height: 420px;
    --ips-atp-number-width: 36px;
    --ips-atp-image-offset: 18px;
    height: auto;
    min-height: 0;
  }

  .ips-atp__component {
    flex-direction: column;
    --ips-atp-layout-gap: 32px;
    height: auto;
  }

  .ips-atp__left,
  .ips-atp__media {
    flex-basis: 100%;
    width: 100%;
  }

  .ips-atp__left {
    justify-content: flex-start;
    --ips-atp-left-gap: 36px;
  }

  .ips-atp__media {
    align-items: stretch;
    min-height: 280px;
  }

  .ips-atp__panels {
    width: 100%;
  }

  .ips-atp__image {
    object-position: var(--ips-atp-image-position-mobile, var(--ips-atp-image-position-tablet, var(--ips-atp-image-position, center center)));
  }
}

/* Flex-gap fallbacks for older Safari releases. */
@supports not (gap: 1px) {
  .ips-atp__component,
  .ips-atp__left,
  .ips-atp__tab-content {
    gap: 0;
  }

  .ips-atp__component > * + * {
    margin-left: var(--ips-atp-layout-gap);
  }

  .ips-atp__left > * + * {
    margin-top: var(--ips-atp-left-gap);
  }

  .ips-atp__tab-content > * + * {
    margin-top: var(--ips-atp-tab-content-gap);
  }

  @media (max-width: 767px) {
    .ips-atp__component > * + * {
      margin-top: var(--ips-atp-layout-gap);
      margin-left: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ips-atp__panel,
  .ips-atp__tab-description-wrap {
    transition: none !important;
  }

  .ips-atp__progress-fill {
    -webkit-animation: none !important;
    animation: none !important;
  }
}
