@import '../../styles/variables';
$vertical-tabs-divider-color: #e4e4e4;
$vertical-tabs-text-color: #2b2b2b;

.container {
    width: 100%;

    .tabs {
        width: 100%;
        display: flex;
    }
}

.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.tab {
    border-bottom: 2px solid #a0abaf;
    color: $clickable-item;
    text-transform: uppercase;
    padding-block-end: 4px;
    cursor: pointer;
    -webkit-user-select: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    font-family: $duda-title-font;
    font-size: 12px;
    font-weight: 300;
    flex: 1 1 auto;

    &.current {
        border-bottom-color: $text-on-light;
        color: $text-on-light;
    }
}

.vertical {
    display: flex;

    & > .tabs {
        flex-direction: column;
        width: initial;

        & > .tab {
            flex: 0 auto;

            border-bottom: 1px solid $vertical-tabs-divider-color;
            padding: 19px 10px;
            margin: 0 23px;
            font-size: 14px;
            font-weight: 500;
            color: $vertical-tabs-text-color;
            text-transform: none;

            &:first-of-type {
                border-top: 1px solid $vertical-tabs-divider-color;
            }

            &.current {
                border-bottom-color: $vertical-tabs-divider-color;
                color: $vertical-tabs-text-color;
                position: relative;

                &::after {
                    position: absolute;
                    top: 0;
                    bottom: 0;
                    left: -23px;
                    margin: auto 0;

                    content: '';
                    width: 5px;
                    height: 40px;
                    border-bottom-right-radius: 100px;
                    border-top-right-radius: 100px;
                    background-color: $text-on-light;
                }
            }
        }
    }
}
