//
//  Common
//  _____________________________________________

& when (@media-common = true) {
}


//
//  Mobile
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
    .product.data.items {
        border-bottom: 0;
        & > .item.content {
            border-top: 1px solid #cccccc;
        }
    }
}

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__568) {

}


//
//  Desktop
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {

}

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__568) {

}

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
    .product.data.items {
        .item {
            &.title {
                margin-top: 1px;
                .switch:hover,
                .switch:focus,
                .switch:active,
                .switch {
                    border: none;
                    background: none;
                    .lib-font-size(18);
                    color: @djo-gray;
                    padding: 1px 26px 1px 26px;
                }
            }
            &.title.active {
                .switch:hover,
                .switch:focus,
                .switch:active,
                .switch {
                    background: @djo-blue;
                    cursor: default;
                    color: @color-white;
                    font-weight: 700;
                    position: relative;
                    border: none;
                    // the arrow at the bottom of the active tab
                    &:before {
                        border-color: @djo-blue transparent transparent transparent;
                        border-style: solid;
                        border-width: 14px 14px 0 14px;
                        bottom: -14px;
                        content: " ";
                        height: 0;
                        left: 0;
                        margin: auto;
                        position: absolute;
                        right: 0;
                        width: 0;
                    }
                }
            }
            &.content {
                border-top: 2px solid #ebebe8;
            }
        }
    }
    .data {
        &.active {
            .switch {
                .counter {
                    color: #ffffff;
                }
            }
        }
    }
}

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m + 1) {

}

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__l) {

}

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__xl) {

}
