.elp-tabs {
  border-top: 1px solid var(--bs-border-color, #e1e9ef);
  margin-top: 2rem;
  overflow: hidden;
}

.elp-tabs[hidden] {
  display: none !important;
}

.elp-tabs__inner {
  display: flex;
}

.elp-tabs__hold {
  flex: 1 1 auto;
  min-width: 0;
  padding: 2.5rem 0;
}

.elp-tabs__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  line-height: 1.2;
  text-transform: none;
}

.elp-tabs__desktop-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.875rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.elp-tabs__nav__items {
  margin: 0;
}

.elp-tabs__tab,
.elp-tabs__mobile-trigger {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.elp-tabs__tab {
  position: relative;
  display: inline-block;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
}

.elp-tabs__tab h3 {
  margin: 0;
  font: inherit;
  text-transform: none;
}

.elp-tabs__tab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--bs-border-color, #e1e9ef);
  content: '';
  transition: background-color 0.2s ease;
}

.elp-tabs__tab:hover::after,
.elp-tabs__tab:focus-visible::after,
.elp-tabs__tab.active::after,
.elp-tabs__tab.is-active::after {
  background: var(--bs-primary, #2fb5d2);
}

.elp-tabs__tab:focus-visible,
.elp-tabs__mobile-trigger:focus-visible {
  outline: 2px solid var(--bs-primary, #2fb5d2);
  outline-offset: 3px;
}

.elp-tabs__mobile-trigger {
  display: none;
}

.elp-tabs__panel[hidden] {
  display: none !important;
}

.elp-tabs__panel h2,
.elp-tabs__panel h3,
.elp-tabs__panel h4,
.elp-tabs__panel h5,
.elp-tabs__panel h6 {
  margin-top: 1.5rem;
  text-transform: none;
}

.elp-tabs__panel h2:first-child,
.elp-tabs__panel h3:first-child,
.elp-tabs__panel h4:first-child,
.elp-tabs__panel h5:first-child,
.elp-tabs__panel h6:first-child {
  margin-top: 0;
}

.elp-tabs__panel img {
  max-width: 100%;
  height: auto;
}

.elp-tabs__panel ul,
.elp-tabs__panel ol {
  padding-left: 1.5rem;
}

@media (max-width: 767.98px) {
  .elp-tabs {
    border-top: 0;
  }

  .elp-tabs__hold {
    padding: 1.5rem 0;
    border-top: 1px solid var(--bs-border-color, #e1e9ef);
  }

  .elp-tabs__desktop-nav {
    display: none;
  }

  .elp-tabs__mobile-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 1rem 2rem 1rem 0;
    border-bottom: 1px solid var(--bs-border-color, #e1e9ef);
    font-weight: 500;
  }

  .elp-tabs__mobile-trigger::before,
  .elp-tabs__mobile-trigger::after {
    position: absolute;
    top: 50%;
    right: 0.25rem;
    width: 0.75rem;
    height: 2px;
    background: var(--bs-primary, #2fb5d2);
    content: '';
    transform: translateY(-50%);
  }

  .elp-tabs__mobile-trigger::before {
    transform: translateY(-50%) rotate(90deg);
    transition: opacity 0.2s ease;
  }

  .elp-tabs__mobile-trigger.active::before,
  .elp-tabs__mobile-trigger.is-active::before {
    opacity: 0;
  }

  .elp-tabs__panel {
    padding: 1.25rem 0;
  }
}
