.#{$namespace}tabs {
    $root: &;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.27);

    &--bar {
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
        border-bottom: 1px solid $colorAlto;
        box-shadow: inset 0 -5px 10px -10px $colorMineShaft;

        @include media('>=tablet') {
            margin: 0 -3rem;
            padding: 0 3rem;
            box-sizing: border-box;
            width: calc(100% + 3rem);
        }
    }

    &__triggers {
        display: flex;
        overflow: hidden;
    }

    &__title {
        flex-basis: 50%;
        background: $colorGallery;
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.27) inset;
        margin-top: -0.2rem;
        margin-left: -0.2rem;
        padding-top: 0.2rem;
        padding-left: 0.2rem;

        &--active {
            background: $colorWhite;
            box-shadow: none;
            margin: 0;
            padding: 0;

            #{$root}__title-link {
                cursor: default;
                color: $colorCeruleanBlue;

                #{$root}--bar & {
                    color: $colorMineShaft;
                    box-shadow: none;

                    &:after {
                        position: absolute;
                        bottom: -1px;
                        left: 0;
                        width: 100%;
                        height: 1px;
                        background-color: $colorWhite;
                        content: '';
                        z-index: 3;
                    }

                    &:visited,
                    &:hover {
                        color: $colorMineShaft;
                    }
                }

                &:visited {
                    color: $colorCeruleanBlue;

                    #{$root}--bar & {
                        color: $colorMineShaft;
                    }
                }
            }
        }

        #{$root}--bar & {
            margin: 0;
            padding: 0;
            flex-basis: auto;
            text-align: center;
            border: 1px solid $colorAlto;
            border-bottom: none;
            border-left-width: 0;
            box-shadow: none;
            transition: background-color 0.15s linear, color 0.15s linear;

            &:not(#{$root}__title--active):hover {
                background-color: lighten($colorGallery, 5%);
                color: $colorGray;
            }

            &:first-child {
                border-left-width: 1px;
                border-top-left-radius: 5px;
            }

            &:last-child {
                border-top-right-radius: 5px;
            }
        }
    }

    &__title-link {
        color: $colorGray;
        text-decoration: none;
        line-height: 4rem;
        height: 4rem;
        padding: 0.1rem 2rem;
        display: block;
        position: relative;
        z-index: 2;
        font-weight: 700;
        font-size: 1.2rem;

        @include media('>=tablet') {
            font-size: 1.8rem;
            line-height: 5.5rem;
            height: 5.5rem;
        }

        &:visited {
            color: $colorMineShaft;
        }

        &:hover {
            text-decoration: none;
        }

        #{$root}--bar & {
            position: relative;
            height: auto;
            line-height: 1.45;
            font-size: 1.2rem;
            padding: 0.6rem 0.5rem;
            font-weight: 300;
            box-shadow: inset 0 -5px 10px -10px $colorMineShaft;
            white-space: nowrap;

            @include media('>=phone-lg') {
                padding: 0.8rem 1.5rem;
            }

            &:hover,
            &:active,
            &:focus,
            &:visited {
                color: $colorMineShaft;
            }
        }
    }

    &__title-span:not(:empty) {
        #{$root}--bar & {
            &:before {
                content: '(';
            }

            &:after {
                content: ')';
            }
        }
    }

    &__content {
        padding: 2rem;
    }
}
