:host {
  position: relative;
  padding: 5px 10px;
  color: var(--color-tab-text);
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
}

:host(:hover) {
  background-color: var(--color-tab-hover);
}

:host(:active) {
  background-color: var(--color-tab-active);
}

:host(.selected) {
  color: var(--color-tab-text-selected);
}

:host(.large.selected) {
  color: var(--color-tab-text-selected);
}

:host(.small) {
  padding: 4px 8px;
  font-size: 12px;
}

:host(.large) {
  padding: 6px 12px;
  font-size: 16px;
}

:host(.selected):not(.from-more):after {
  background: var(--color-tab-bar);
  border-radius: 0.375rem;
  bottom: calc(50% - 25px);
  content: "";
  height: 2px;
  position: absolute;
  right: 50%;
  transform: translate(50%, -50%);
  width: 100%;
  z-index: 1;
}

:host(.small.selected):not(.from-more):after {
  bottom: calc(50% - 21px);
}

:host(.large.selected):not(.from-more):after {
  bottom: calc(50% - 30px);
}

:host(.selected.from-more) {
  color: var(--color-tab-more-selected-text);
  background-color: var(--color-tab-more-selected-bg);
}