.elementor-widget-ha-nested-service-list {
  --ha-nsl-title-col-width: 50%;
  --ha-nsl-media-col-width: 50%;
  --ha-nsl-column-gap: 40px;
  --ha-nsl-item-min-height: 300px;
  --ha-nsl-sticky-top: 40px;
  --ha-nsl-divider-color: rgba(33, 33, 33, 0.12);
  --ha-nsl-divider-height: 1px;
  --ha-nsl-divider-display: block;
  --ha-nsl-title-font-size: 24px;
  --ha-nsl-title-normal-color: #333;
  --ha-nsl-title-active-color: #000;
  --ha-nsl-inactive-opacity: 0.12;
  --ha-nsl-number-font-size: 14px;
  --ha-nsl-number-color: #666;
  --ha-nsl-number-spacing: 8px;
}

.elementor-widget-ha-nested-service-list .elementor-add-ha-button {
  display: none;
}

.ha-nsl-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.ha-nsl-item {
  display: grid;
  grid-template-columns: var(--ha-nsl-title-col-width) var(--ha-nsl-media-col-width);
  grid-template-rows: auto auto;
  column-gap: var(--ha-nsl-column-gap);
  min-height: var(--ha-nsl-item-min-height);
}

.ha-nsl-title-wrap {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: var(--ha-nsl-inactive-opacity);
  transition: opacity 0.3s ease;
}

.ha-nsl-list[data-select-type="hover"] .ha-nsl-title-wrap,
.ha-nsl-list[data-select-type="click"] .ha-nsl-title-wrap {
  cursor: pointer;
}

.ha-nsl-item.e-active .ha-nsl-title-wrap,
.ha-nsl-item:first-child .ha-nsl-title-wrap {
  opacity: 1;
}

.ha-nsl-service-number {
  margin: 0 0 var(--ha-nsl-number-spacing) 0;
  font-size: var(--ha-nsl-number-font-size);
  color: var(--ha-nsl-number-color);
  line-height: 1.2;
}
.ha-nsl-service-number svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  fill: currentColor;
}

.ha-nsl-service-title {
  margin: 0;
  font-size: var(--ha-nsl-title-font-size);
  color: var(--ha-nsl-title-normal-color);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.ha-nsl-item.e-active .ha-nsl-service-title {
  color: var(--ha-nsl-title-active-color);
}

.ha-nsl-media-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--ha-nsl-media-col-width);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.ha-nsl-item.e-active .ha-nsl-media-wrap,
.ha-nsl-item:first-child .ha-nsl-media-wrap {
  opacity: 1;
  pointer-events: auto;
}

.ha-nsl-media-sticky {
  position: sticky;
  top: var(--ha-nsl-sticky-top);
  max-height: calc(100vh - var(--ha-nsl-sticky-top) * 2);
  overflow: hidden;
}

.ha-nsl-media-sticky > .e-con,
.ha-nsl-media-sticky > .elementor-element {
  width: 100%;
  backface-visibility: hidden;
}

.ha-nsl-item-divider {
  grid-column: 1/-1;
  grid-row: 2;
  display: var(--ha-nsl-divider-display);
  width: 100%;
  height: var(--ha-nsl-divider-height);
  background-color: var(--ha-nsl-divider-color);
}

.elementor-edit-mode .ha-nsl-media-wrap {
  display: none !important;
}
.elementor-edit-mode .ha-nsl-title-wrap {
  cursor: pointer;
}
.elementor-edit-mode .ha-nsl-item:not(.e-active) > .e-con {
  display: none !important;
  visibility: hidden !important;
  height: 0;
  padding: 0;
}
.elementor-edit-mode .ha-nsl-item.e-active > .e-con {
  display: flex !important;
}
.elementor-edit-mode .ha-nsl-item > .e-con,
.elementor-edit-mode .ha-nsl-item > .elementor-element {
  grid-column: 2;
  grid-row: 1;
  min-height: var(--ha-nsl-item-min-height);
  align-self: stretch;
  width: 100%;
}
.elementor-edit-mode .ha-nsl-item-divider {
  display: none !important;
}

@media (max-width: 767px) {
  .ha-nsl-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: unset;
  }
  .ha-nsl-title-wrap {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 20px;
    opacity: 1 !important;
  }
  .ha-nsl-media-wrap {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    opacity: 1 !important;
    pointer-events: auto;
  }
  .ha-nsl-media-sticky {
    position: relative;
    top: auto;
    max-height: none;
  }
  .ha-nsl-item-divider {
    grid-row: 3;
    margin-top: 20px;
    margin-bottom: 20px;
  }
}
.rtl .ha-nsl-item {
  direction: rtl;
}
