.animex-nested-showcase {
  --animex-nested-accent: #2f8cff;
  position: relative;
  overflow: hidden;
  width: 100%;
  color: #fff;
}

.animex-nested-showcase__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns:
    var(--main-col-width, 260px) var(--sub-col-width, 220px)
    var(--desc-col-width, 1fr);
  align-items: stretch; /* lets main-nav fill full row height for space-between */
  min-height: inherit;
}

/* Sub-panels and description: stay top-aligned (not stretched) */
.animex-nested-showcase__sub-panels,
.animex-nested-showcase__description {
  align-self: start;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.animex-nested-showcase:not(.has-sub-items)
  .animex-nested-showcase__sub-panels {
  display: none;
}

/* Hide description if empty */
.animex-nested-showcase.is-desc-empty .animex-nested-showcase__description {
  display: none;
}

.animex-nested-showcase:not(.has-sub-items)
  .animex-nested-showcase__description {
  grid-column: 2 / span 2;
  justify-self: start;
}

.animex-nested-showcase.has-sub-items .animex-nested-showcase__description {
  grid-column: 3;
  justify-self: start;
}

.animex-nested-showcase__main-nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch; /* stretch within the grid row so height: 100% works */
  height: 100%;
}

.animex-nested-showcase__subnav {
  display: flex;
  flex-direction: column;
}

/* Hide non-active sub panels — only the .is-active one should be visible */
.animex-nested-showcase__subnav:not(.is-active) {
  display: none;
}

.animex-nested-showcase__button,
.animex-nested-showcase__subitem,
.animex-nested-showcase__arrow {
  appearance: none;
  border: 0;
  font: inherit;
}

.animex-nested-showcase__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
  border-style: solid;
  border-width: 0;
  gap: 12px;
}

.animex-nested-showcase__button:hover,
.animex-nested-showcase__button.is-active {
  transform: translateX(4px);
}

.animex-nested-showcase__button-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.animex-nested-showcase__button-icon,
.animex-nested-showcase__subitem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  font-size: 14px;
}

.animex-nested-showcase__subitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
  width: 100%;
}

.animex-nested-showcase__subitem-title {
  flex: 1;
}

.animex-nested-showcase__subitem.is-active {
  transform: translateX(3px);
}

.animex-nested-showcase__sub-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

.animex-nested-showcase__description {
  justify-self: start;
  align-self: start;
  width: 100%;
  backdrop-filter: blur(12px);
  border-style: solid;
  border-width: 0;
}

.animex-nested-showcase__description-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.animex-nested-showcase__arrows {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.animex-nested-showcase__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
  border-style: solid;
  border-width: 0;
}

@media (max-width: 1024px) {
  .animex-nested-showcase__inner {
    grid-template-columns: 1fr 1fr;
  }

  .animex-nested-showcase.has-sub-items .animex-nested-showcase__description {
    grid-column: 1 / -1;
    width: 100% !important;
  }

  .animex-nested-showcase:not(.has-sub-items)
    .animex-nested-showcase__description {
    grid-column: 2;
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  .animex-nested-showcase__inner {
    grid-template-columns: 1fr;
    gap: 15px !important;
  }

  .animex-nested-showcase__description,
  .animex-nested-showcase:not(.has-sub-items)
    .animex-nested-showcase__description,
  .animex-nested-showcase.has-sub-items .animex-nested-showcase__description {
    grid-column: 1;
    width: 100% !important;
    transform: none !important;
  }

  .animex-nested-showcase__sub-panels {
    transform: none !important;
  }

  .animex-nested-showcase__button:hover,
  .animex-nested-showcase__button.is-active {
    transform: none;
  }

  .animex-nested-showcase__arrows {
    flex-direction: row;
    position: relative;
    left: 0 !important;
    bottom: 0 !important;
    margin-top: 20px;
    justify-content: center;
  }
}
.animex-nested-showcase__button {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  text-align: left !important;
}
.animex-nested-showcase__subitem {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
