@value outer, root__any-actions from "../Cls.module.css";

.tabs {
    display: flex;
    flex-direction: column;
}

.tabs__list {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    padding: var(--divkit-tabs-title-padding, 0 1.2em .8em);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overflow-x: scroll;
    overflow-y: hidden;
}

.tabs__list::-webkit-scrollbar {
    display: none;
}

.tabs__items-bg {
    position: absolute;
    display: flex;
}

.tabs__items-text {
    position: relative;
}

.tabs__item {
    display: inline-block;
    flex: 0 0 auto;
    margin-left: var(--divkit-tabs-items-spacing, 0);
    padding: var(--divkit-tabs-paddings, .5em .6667em);
    font-size: var(--divkit-tabs-font-size, 1.2em);
    line-height: var(--divkit-tabs-line-height, 1.25);
    letter-spacing: var(--divkit-tabs-letter-spacing, 0);
    font-weight: var(--divkit-tabs-inactive-font-weight, 400);
    font-family: var(--divkit-tabs-inactive-font-family, inherit);
    border-radius: var(--divkit-tabs-border-radius, 100em);
    cursor: pointer;
    user-select: none;
    white-space: pre;
    color: var(--divkit-tabs-inactive-text-color, rgba(0, 0, 0, .5));
    background: var(--divkit-tabs-inactive-background-color, none);
    text-decoration: none;
}

.tabs__item:first-child {
    margin-left: 0;
}

.tabs__item_selected {
    color: var(--divkit-tabs-active-text-color, rgba(0, 0, 0, .8));
    cursor: default;
    font-weight: var(--divkit-tabs-active-font-weight, 400);
    font-family: var(--divkit-tabs-active-font-family, inherit);
}

.tabs_animation_fade .tabs__item_selected,
.tabs_animation_none .tabs__item_selected {
    background: var(--divkit-tabs-active-background-color, #ffdc60);
}

.tabs__items-bg .tabs__item {
    color: transparent;
}

.tabs__items-text .tabs__item {
    background: none;
}

.tabs__items-bg,
.tabs__items-text {
    display: flex;
}

.tabs_animation_fade .tabs__item.tabs__item {
    /* from.root_platform_desktop .root__clickable */
    transition: background-color var(--divkit-tabs-animation-duration, .3s) ease-in-out, opacity .15s ease-out;;
}

.tabs__item_selected.tabs__item_actionable {
    cursor: pointer;
}

.tabs__panels {
    display: flex;
    flex: 1 1 auto;
    transition: height .3s ease-out;
    touch-action: pan-y;
    overflow: hidden;
}

.tabs_own-height > .tabs__panels {
    flex-shrink: 0;
}

.tabs__swiper {
    position: relative;
    display: flex;
    flex: 0 1 auto;
    width: 100%;
    will-change: transform;
    transition-property: transform;
    transition-timing-function: ease-out;
    transition-duration: 0s;
}

.tabs__swiper_animated {
    transition-duration: .3s;
}

.tabs__swiper_inited .tabs__panel {
    position: absolute;
    top: 0;
    width: 100%;
}

.tabs__panel {
    display: none;
    pointer-events: auto;
}

.tabs__panel .outer {
    pointer-events: none;
}

.tabs__panel .root__any-actions {
    pointer-events: auto;
}

.tabs__panel_visible {
    display: flex;
    flex: 0 1 auto;
    width: 100%;
}

.tabs_height-parent_yes .tabs__panel_visible {
    height: 100%;
}

.tabs__separator {
    height: .1em;
    margin: 0 1.2em;
    background: rgba(0, 0, 0, .08);
}

.tabs__delimitier {
    flex: 0 0 auto;
    align-self: center;
    margin-left: var(--divkit-tabs-items-spacing, 0);
}

.tabs__tabs-highlighter {
    position: absolute;
    top: 0;
    font-size: var(--divkit-tabs-font-size, 1.2em);
    border-radius: var(--divkit-tabs-border-radius, 100em);
    background: var(--divkit-tabs-active-background-color, #ffdc60);
    transition: var(--divkit-tabs-animation-duration, .3s) ease-in-out;
    transition-property: left, width;
    pointer-events: none;
}
