.te-tabs {
  width: 100%;
}

.te-tabs-inner {
  position: relative;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: var(--te-gap, 0px);
  background: var(--te-bar-bg, transparent);
}

.te-tabs.te-align-left .te-tabs-inner {
  justify-content: flex-start;
}

.te-tabs.te-align-center .te-tabs-inner {
  justify-content: center;
}

.te-tabs.te-align-right .te-tabs-inner {
  justify-content: flex-end;
}

.te-tabs.te-align-space-between .te-tabs-inner {
  justify-content: space-between;
}

.te-tab {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: var(--te-tab-padding, 18px 24px) !important;
  color: var(--te-text-color, #222);
  font-size: var(--te-font-size, 16px);
  font-weight: var(--te-font-weight, 600);
  font-style: var(--te-font-style, normal);
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  background: var(--te-tab-bg, transparent);
  user-select: none;
  z-index: 1;
  flex: 0 0 var(--te-tab-width, auto) !important;
  box-sizing: border-box;
  min-width: 0;
}

.te-tab .te-label {
  color: inherit !important;
}

.te-tabs.te-label-ellipsis .te-tab .te-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.te-tabs.te-label-wrap .te-tab {
  white-space: normal;
}

.te-tabs.te-label-wrap .te-tab .te-label {
  display: block;
  white-space: normal;
  line-height: 1.25;
}

.te-tabs.te-has-tab-width .te-tabs-inner > .te-tab {
  flex: 0 0 var(--te-tab-width) !important;
  width: var(--te-tab-width) !important;
  min-width: var(--te-tab-width) !important;
  max-width: var(--te-tab-width) !important;
}

.te-tab:hover {
  color: var(--te-text-hover-color, var(--te-text-color, #222)) !important;
  background: var(--te-tab-hover-bg, var(--te-tab-bg, transparent));
}

.te-tab.te-is-active {
  color: var(--te-text-active-color, var(--te-text-color, #222));
  background: var(--te-tab-active-bg, var(--te-tab-bg, transparent));
}

.te-tab.te-is-active:hover {
  color: var(--te-text-hover-color, var(--te-text-active-color, var(--te-text-color, #222))) !important;
}

.te-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  pointer-events: none;
  z-index: 0;
  transition: left var(--te-fly-duration, 300ms) ease, width var(--te-fly-duration, 300ms) ease,
    opacity var(--te-fly-duration, 300ms) ease;
}

.te-indicator-active {
  bottom: 0;
  top: auto;
  height: var(--te-active-underline-thickness, 3px);
  opacity: 1;
}

.te-indicator-active::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--te-active-underline-width, 100%);
  margin: 0 auto;
  background: var(--te-active-underline-color, #129c86);
}

.te-indicator-hover {
  height: 100%;
  opacity: 0;
  border-radius: var(--te-hover-radius, 0px);
}

.te-fly-bg .te-indicator-hover {
  background: var(--te-hover-bg, transparent);
}

.te-fly-border .te-indicator-hover {
  border: var(--te-hover-border-width, 0px) solid var(--te-hover-border-color, transparent);
}

.te-fly-underline .te-indicator-hover::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  height: var(--te-hover-underline-thickness, 3px);
  width: var(--te-hover-underline-width, 100%);
  background: var(--te-hover-underline-color, #129c86);
}

.te-tabs.te-no-fly .te-indicator-hover {
  display: none;
}

.te-tabs.te-no-fly .te-tab:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--te-hover-underline-thickness, 3px);
  background: var(--te-hover-underline-color, #129c86);
}

.te-mm-toggle {
  display: none;
}

.te-tabs.te-mm-on {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: var(--te-bar-bg, transparent);
  position: relative;
}

.te-tabs.te-mm-on .te-tabs-inner {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.te-tabs.te-mm-on .te-mm-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--te-mm-btn-bg, #111);
  color: var(--te-mm-btn-color, #fff);
  cursor: pointer;
  padding: 0;
  margin: 8px;
}

.te-tabs.te-mm-on .te-mm-toggle::before {
  content: "";
  width: 18px;
  height: 12px;
  display: block;
  background: linear-gradient(
    to bottom,
    currentColor 0,
    currentColor 2px,
    transparent 2px,
    transparent 5px,
    currentColor 5px,
    currentColor 7px,
    transparent 7px,
    transparent 10px,
    currentColor 10px,
    currentColor 12px
  );
}

.te-mm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.te-tabs.te-mm-open .te-mm-overlay {
  display: block;
}

.te-mm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.te-mm-sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: var(--te-mm-panel-bg, #fff);
  color: var(--te-mm-panel-text-color, #333);
  transform: translate3d(0, -8px, 0);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
  padding: 10px 0;
  max-height: 100vh;
  overflow: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.te-tabs.te-mm-open .te-mm-sheet {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.te-mm-item {
  display: block;
  padding: 18px 24px;
  text-decoration: none;
  color: var(--te-mm-panel-text-color, #333);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.te-mm-item + .te-mm-item {
  border-top: 1px dashed var(--te-mm-panel-divider-color, rgba(0, 0, 0, 0.12));
}

.te-mm-item.te-is-active {
  font-weight: 700;
}
