// /**
//  * Copyright Â© 2015 Magento. All rights reserved.
//  * See COPYING.txt for license details.
//  */

//
//  Common
//  _____________________________________________

& when (@media-common = true) {
    .pages {
        .lib-pager();
        .action {
            border-radius: 0;
            padding: 5px 8px;
            &.previous {
                margin-right: 0;
                min-width: 15px;
            }
            &.next {
                margin-left: 0;
                min-width: 15px;
            }
        }
    }
}

//
//  Mobile
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
    .pages {
        & &-items {
            display: block;
            padding: 2px 40px 0;
            position: relative;
            white-space: normal;
            z-index: 1;
        }
        &-item-previous {
            left: 0;
            position: absolute;
            top: 0;
            z-index: 1;
        }
        &-item-next {
            position: absolute;
            right: 0;
            top: 0;
            z-index: 1;
        }
    }
}
