.TabsItem {
  white-space: nowrap;
  text-align: center;
  font-weight: 500;
  box-sizing: border-box;
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  }

.Tabs--default .TabsItem {
  font-size: 16px;
  line-height: 20px;
  color: var(--text_secondary);
  max-width: 100%;
  flex-basis: 0;
  flex-shrink: 0;
  flex-grow: 1;
  position: relative;
  padding-left: 16px;
  padding-right: 16px;
  }

  .Tabs--default .TabsItem__in {
    padding: 14px 0;
    }

.Tabs--default .TabsItem::after {
  content: '';
  display: block;
  position: absolute;
  left: 16px;
  bottom: 8px;
  width: calc(100% - 32px);
  height: 2px;
  border-radius: 2px;
  }

.Tabs--default .TabsItem--selected {
  color: var(--text_primary);
  }

.Tabs--default .TabsItem--selected::after {
  background: var(--accent);
  }

.HorizontalScroll .TabsItem {
  min-width: 64px;
  flex-basis: auto;
}

.Tabs--buttons .TabsItem {
  border-radius: 10px;
  box-sizing: border-box;
  padding: 0 16px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  }

  .Tabs--buttons .TabsItem__in {
    padding: 6px 0;
    }

/* Для случая, когда внутри Tabs нет HorizontalScroll */
.Tabs--buttons .Tabs__in > .TabsItem:first-child {
  margin-left: 8px;
  }

.Tabs--buttons .TabsItem:not(:last-child) {
  margin-right: 8px;
  }

.Tabs--buttons .TabsItem {
  background-color: var(--header_background);
  color: var(--header_tab_inactive_text);
  }

.Tabs--buttons .TabsItem--selected {
  background-color: var(--header_tab_active_background);
  color: var(--header_tab_active_text);
  }

.Tabs--buttons .TabsItem {
  color: var(--panel_tab_inactive_text);
  }

.Tabs--buttons .TabsItem--selected {
  background-color: var(--panel_tab_active_background);
  color: var(--panel_tab_active_text);
  }

/*
  iOS
 */
.Tabs--ios.Tabs--segmented .TabsItem {
  border: 1px solid;
  font-size: 14px;
  line-height: 18px;
  padding: 0 12px;
  max-width: 100%;
  flex-basis: 0;
  flex-shrink: 0;
  flex-grow: 1;
  }

  .Tabs--ios.Tabs--segmented .TabsItem__in {
    padding: 7px 0;
    }

.Tabs--ios.Tabs--segmented .TabsItem:not(:first-child) {
  border-left: none;
  }

.Tabs--ios.Tabs--segmented .TabsItem:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  }

.Tabs--ios.Tabs--segmented .TabsItem:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  }

.Tabs--ios.Tabs--segmented .TabsItem {
  border-color: var(--segmented_control_tint);
  color: var(--segmented_control_tint);
  }

.Tabs--ios.Tabs--segmented .TabsItem--selected {
  background-color: var(--segmented_control_tint);
  }

.Tabs--ios.Tabs--segmented .TabsItem--selected {
  color: var(--background_content);
  }

.Tabs--ios.Tabs--segmented .TabsItem:not(.TabsItem--selected).Tappable--active {
  background: var(--separator_common);
  }

.PanelHeader--ios .Tabs--segmented.TabsItem:not(.TabsItem--selected).Tappable--active .TabsItem__in {
  opacity: .7;
  }

.PanelHeader--ios .Tabs--segmented .TabsItem {
  border-color: var(--header_tint);
  color: var(--header_tint);
  }

.Tabs--ios.Tabs--segmented.Tabs--header .TabsItem--selected {
  background-color: var(--header_tint);
  color: var(--header_background);
  }

/*
  Android
 */

.TabsItem--android .Tappable__waves {
  display: none;
  }
