/*--------------------------------------------------------------
    Pagination
--------------------------------------------------------------*/

    .pagination { 
        float: none; display: inline-block; text-align: center; width: 100%; 
        margin-top: clamp(1.875rem, 1.6526rem + 1.227vw, 3.125rem); /*50px - 30px*/ }
    .pagination .column { float: right; width: 100%; }
    .pagination .column, .pagination ul { margin: -8px; }

    .pagination ul, .entry-body > .page-link { padding-left: 0; display: flex; flex-wrap: wrap; justify-content: center; text-align: center; }
    .pagination ul li, .woocommerce nav.woocommerce-pagination ul li { display: inline-block; float: none; padding-bottom: 0; display: contents; }

    .page-link {    
        clear: both; float: none; width: 100%; display: flex; flex-wrap: wrap; 
        align-items: center; justify-content: flex-start; margin: -14px; margin-top: 0; }

    .page-link a, .pagination ul li a, .woocommerce nav.woocommerce-pagination ul li a,
    .page-link > span, .pagination ul li span, .woocommerce nav.woocommerce-pagination ul li span,
    .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li a, 
    .woocommerce nav.woocommerce-pagination ul li span.current {     
        position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; 
        width: 55px; height: 55px; line-height: 55px; font-size: var(--wdtFontSize_Base); font-weight: var(--wdtFontWeight_Ext); 
        letter-spacing: 0; text-transform: uppercase; padding: 0; text-align: center; background-color: transparent !important; 
        background-image: linear-gradient(0deg, rgba(var(--wdtSecondaryColorRgb), 1), rgba(var(--wdtSecondaryColorRgb), 1)), linear-gradient(0deg, rgba(var(--wdtSecondaryColorRgb), 1), rgba(var(--wdtSecondaryColorRgb), 1)), linear-gradient(0deg, rgba(var(--wdtSecondaryColorRgb), 1), rgba(var(--wdtSecondaryColorRgb), 1)), linear-gradient(0deg, rgba(var(--wdtSecondaryColorRgb), 1), rgba(var(--wdtSecondaryColorRgb), 1)) !important; background-repeat: no-repeat; background-size: calc(100% + 50px) 1px, 1px calc(100% + 50px); 
        background-position: 80% calc(0% + 0px), calc(100% + 0px) 80%, 25% calc(100% + 0px), calc(0% + 0px) 25%; 
        border: 6px solid transparent !important; -webkit-transition: var(--wdt-Livi-Transition); 
        transition: var(--wdt-Livi-Transition); transition-behavior: allow-discrete; 
        -webkit-border-radius: var(--wdtRadius_Zero); border-radius: var(--wdtRadius_Zero); z-index: 1; margin: 8px; }

    .page-link a:hover, .page-link > span.current, .pagination ul li a:hover, .pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current { 
        background-image: linear-gradient(0deg, rgba(var(--wdtPrimaryColorRgb), 1), rgba(var(--wdtPrimaryColorRgb), 1)), linear-gradient(0deg, rgba(var(--wdtPrimaryColorRgb), 1), rgba(var(--wdtPrimaryColorRgb), 1)), linear-gradient(0deg, rgba(var(--wdtPrimaryColorRgb), 1), rgba(var(--wdtPrimaryColorRgb), 1)), linear-gradient(0deg, rgba(var(--wdtPrimaryColorRgb), 1), rgba(var(--wdtPrimaryColorRgb), 1)) !important;
        background-repeat: no-repeat; background-size: calc(100% + 0px) 1px, 1px calc(100% + 0px); 
        background-position: 80% calc(0% + 0px), calc(100% + 0px) 80%, 25% calc(100% + 0px), calc(0% + 0px) 25%; }

    .pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li span.current, .page-link > span.current { 
        background-size: calc(100% + 50px) 1px, 1px calc(100% + 50px) !important; }

    .page-link > span::before, .page-link a::before, .pagination ul li a::before, .pagination ul li span::before, .woocommerce nav.woocommerce-pagination ul li a::before, .woocommerce nav.woocommerce-pagination ul li span::before {
        content: ""; position: absolute; width: 100%; height: 100%; top: 0; right: 0; bottom: 0; left: 0; 
        background-color: var(--wdtSecondaryColor); -webkit-transition: inherit; transition: inherit; 
        z-index: -1; margin: auto; }

    .page-link > span.current::before, .page-link a:hover::before, .pagination ul li a:hover::before, .pagination ul li span.current::before, .woocommerce nav.woocommerce-pagination ul li a:hover::before, .woocommerce nav.woocommerce-pagination ul li span.current::before { 
        background-color: var(--wdtPrimaryColor); }

    .page-link a:not(:focus), .pagination ul li a:not(:focus), .woocommerce nav.woocommerce-pagination ul li a:not(:focus) { text-decoration: none; }

    .woocommerce nav.woocommerce-pagination ul, .woocommerce nav.woocommerce-pagination ul li { border-width: 0; }

    @media all and (-ms-high-contrast:none) {

        .pagination ul li a.next { margin-right: 0; }
        .pagination ul li a.next, .pagination ul li a.prev { top: -24px; } /* IE10 */
        *::-ms-backdrop, .pagination ul li a.next, .pagination ul li a.prev { top: -24px; } /* IE11 */

    }

    .pagination ul li a.next i, .pagination ul li a.prev i,
    .woocommerce nav.woocommerce-pagination ul li a.prev i, 
    .woocommerce nav.woocommerce-pagination ul li a.next i { font-weight: normal; margin: 0; }

    .pagination ul li a .wdticon-angle-double-right:before, .pagination ul li a .wdticon-angle-double-left:before,
    .pagination ul li a .fa-angle-right:before, .pagination ul li a .fa-angle-left:before {
        content: '\e800'; font-family: "common-right-arrow"; display: block; margin: auto; }
    .pagination ul li a .wdticon-angle-double-left:before,
    .pagination ul li a .fa-angle-left:before { transform: scaleX(-1); }

    .woocommerce nav.woocommerce-pagination ul li a .wdticon-angle-double-right::before,
    .woocommerce nav.woocommerce-pagination ul li a .wdticon-angle-double-left::before { 
        content: '\e800'; font-family: "common-right-arrow"; }
    .woocommerce nav.woocommerce-pagination ul li a .wdticon-angle-double-left::before { 
        -webkit-transform: scaleX(-1); transform: scaleX(-1); }

    .pagination div[class*="-posts"] { 
        display: inline-block; float: none; position: relative; text-align: center; width: auto; z-index: 9; }
    .pagination div[class*="-posts"] a { 
        display: inline-block; float: none; margin: 2px; min-width: 150px; 
        -webkit-border-radius: var(--wdtRadius_3X); border-radius: var(--wdtRadius_3X); }

    .pagination:empty { display: none; }
    .archive .pagination.blog-pagination:empty { display: inline-block; }

    .pagination .newer-posts a { margin-bottom: -1px; padding: var(--wdtPadding_Btn); }
    .pagination .older-posts a { margin-bottom: -1px; padding: var(--wdtPadding_Btn); }
    .pagination .older-posts i, .pagination .newer-posts i { height: 20px; line-height: 20px; text-align: center; width: auto; }
    .pagination .older-posts i { margin-left: 5px; }
    .pagination .newer-posts i { margin-right: 5px; }
    .pagination .older-posts i:before, .pagination .newer-posts i:before { margin: 0; width: auto; }
    .pagination div[class*="-posts"]:only-child a { margin: 0; }

    .pagination a.loadmore-btn { display: inline-block; position: relative; width: auto; margin-top: 10px; }
    .pagination a.loadmore-btn:not(.more-items) { cursor: not-allowed; }

    .tpl-blog-holder.loading + .pagination a.loadmore-btn:after { 
        animation: animateCircle 2s linear infinite; border: 3px solid transparent; border-radius: 50%; 
        border-right: 3px solid #fff; border-top: 3px solid #fff; bottom: 0; content: ''; 
        display: block; height: 25px; left: 0; margin: auto; opacity: .5; position: absolute; 
        right: 0; top: 0; width: 25px; }

    @keyframes animateCircle {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    @keyframes animate {
        0% { transform: rotate(45deg); }
        100% { transform: rotate(405deg); }
    }

    .pagination .newer-posts a:not(:focus), .pagination .older-posts a:not(:focus), .pagination ul li a:not(:focus), .pagination a.loadmore-btn:not(:focus) { text-decoration: none; }
    .pagination .newer-posts a:focus, .pagination .older-posts a:focus, .pagination ul li a:focus, .pagination a.loadmore-btn:focus { text-decoration: underline !important; }


/*--------------------------------------------------------------
    Default Colors
--------------------------------------------------------------*/

    .page-link a, .pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li a,
    .page-link > span, .pagination ul li span,
    .woocommerce nav.woocommerce-pagination ul li span { color: var(--wdtAccentTxtColor); }

    .pagination .newer-posts a, .pagination .older-posts a, .pagination a.loadmore-btn,
    .page-link > a:hover, .page-link > a:focus, .page-link > span,
    .pagination ul li a:hover, .pagination ul li a:focus, .pagination ul li span:not(.dots),
    .woocommerce nav.woocommerce-pagination ul li a:focus, 
    .woocommerce nav.woocommerce-pagination ul li a:hover, 
    .woocommerce nav.woocommerce-pagination ul li span.current { color: var(--wdtAccentTxtColor); }

    .pagination .newer-posts, .pagination .older-posts { background: var(--wdtBodyBGColor); }

    .page-link a, .pagination ul li a,
    .page-link > span, .pagination ul li span,
    .pagination a.loadmore-btn:before,
    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span { border-color: var(--wdtBorderColor); }

    .tpl-blog-holder.loading + .pagination a.loadmore-btn:after { border-top-color: var(--wdtBodyBGColor); border-right-color: var(--wdtBodyBGColor); }



/*--------------------------------------------------------------
    Accents
--------------------------------------------------------------*/

    /* Primary Color */
    .tpl-blog-holder.loading + .pagination a.loadmore-btn { color: var(--wdtPrimaryColor); }

    .pagination .newer-posts a, .pagination .older-posts a, .pagination a.loadmore-btn,
    .page-link > a:hover, .page-link > a:focus, .page-link > span,
    .pagination ul li a:hover, .pagination ul li a:focus, .pagination ul li span:not(.dots),
    .woocommerce nav.woocommerce-pagination ul li a:focus, 
    .woocommerce nav.woocommerce-pagination ul li a:hover, 
    .woocommerce nav.woocommerce-pagination ul li span.current { background-color: var(--wdtPrimaryColor); }

    .page-link > a:hover, .page-link > a:focus, .page-link > span,
    .pagination ul li a:hover, .pagination ul li a:focus, .pagination ul li span:not(.dots),
    .woocommerce nav.woocommerce-pagination ul li a:focus, 
    .woocommerce nav.woocommerce-pagination ul li a:hover, 
    .woocommerce nav.woocommerce-pagination ul li span.current { border-color: var(--wdtPrimaryColor); }

    .pagination .newer-posts a:hover, .pagination .older-posts a:hover, .pagination a.loadmore-btn:hover, .pagination a.loadmore-btn:not(.more-items) { background: var(--wdtSecondaryColor); }

    .tpl-blog-holder.loading + .pagination a.loadmore-btn:hover { color: var(--wdtSecondaryColor); }


/*--------------------------------------------------------------
    Responsive
--------------------------------------------------------------*/

/*----*****---- << Mobile (Landscape) >> ----*****----*/

@media only screen and (max-width: 1024px) {
    .pagination .column, .pagination ul { margin: -6px; }
    .page-link { margin: -10px; margin-top: 0; }
    .page-link a, .pagination ul li a, .woocommerce nav.woocommerce-pagination ul li a, .page-link > span, .pagination ul li span, .woocommerce nav.woocommerce-pagination ul li span, .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span.current { margin: 6px; }
}

@media only screen and (max-width: 767px) {
    .pagination ul li a, .pagination ul li span, .page-link a, .page-link > span, 
    .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span,
    .woocommerce nav.woocommerce-pagination ul li span.current {         
        font-size: var(--wdtFontSize_Ext); width: 50px; height: 50px; line-height: 38px; }

    .pagination ul li a.next i, .pagination ul li a.prev i,
    .woocommerce .product-loop-sorting nav.woocommerce-pagination ul li i { font-size: calc(var(--wdtFontSize_Base) - 3px); }
}

@media only screen and (max-width: 480px) {
    .pagination .column, .pagination ul { margin: -4px; }
    .page-link { margin: -8px; margin-top: 0; }
    .page-link a, .pagination ul li a, .woocommerce nav.woocommerce-pagination ul li a, .page-link > span, .pagination ul li span, .woocommerce nav.woocommerce-pagination ul li span, .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span.current { margin: 4px; }
}