:root {
    --eswislst-color-primary: #629D23;  
    --eswislst-color-secondary: #ffffff;  
    --eswislst-color-danger: #e62323;  
    --eswislst-color-text: #121212;  
    --eswislst-bg-color: #ffffff;  
    --eswislst-overlay-color: #0006;  
}
.eswislst-counter-box {
    display: inline-flex;
    position: relative;
    padding: 0 .5em;
    margin-left: -12px;
    .eswislst-counter {
        cursor: pointer;
        position: relative;
        font-size: .875rem;
        font-weight: 600;
        color: #121212;
        br {
            display: none;
        }
        .eswislst-close-icon {   
            position: relative;  
            top: 4px;       
            svg {
                fill: #121212;
                width: 28px;
            }
        }
        .esb-count-title{
            font-style: normal;
            margin-left: 4px;
        }
        .eswislst-total-marked:not(.esbm_position_right) {
            height: 20px;
            width: 20px;
            background: var(--eswislst-color-danger);
            border-radius: 100%;
            position: absolute;
            top: 0;
            right: -12px;
            font-size: 10px;
            padding: 1px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            z-index: 2;
            &.esbm_icon_text_yes{
                left: -12px;
                right: auto;
            }
        }
    }
    #eswislst_popup_modal {
        @-webkit-keyframes animatetop {
            from {top:-300px; opacity:0} 
            to {top:0; opacity:1}
        }
        
        @keyframes animatetop {
            from {top:-300px; opacity:0}
            to {top:0; opacity:1}
        }
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--eswislst-overlay-color);
        overflow: hidden;
        align-items: center;
        justify-content: center;
        @media screen and (max-width: 768px) {
            padding-top: 20px;
        }
        .eswislst-modal-body {
            padding: 30px 30px;
            min-height: 435px;
        }
        .eswislst-modal-content {
            > p {
                display: none;
            }
            position: relative;
            background-color: var(--eswislst-bg-color);
            margin: auto;
            width: 100%;
            max-width: 1140px;
            box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
            animation-name: animatetop;
            animation-duration: 0.4s;
            border-radius: 8px;
            .eswislst-deleteing-loader {
                position: absolute;
                z-index: 3;
                background: #fff;
                width: 100%;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                display: none;
                .dotlottie-player {
                    margin-top: -200px;
                }
            }
            .eswislst-product-head {
                display: none;
            }
            
        }
    }

}
.eswislst-modal-body {
    position: relative;
    min-height: 250px;
    > p {
        display: none;
    }
    @media screen and (max-width: 768px) { 
        height: 100vh;
        overflow: auto;
        &.swislst-products-popup-body {
            padding: 0px 10px 50px 10px;
        }
    }
    .eswislst-added-notice {
        display: none;
        .woocommerce-message {
            margin-bottom: 0;
        }
    }
    .eswislst-empty-products {
        position: absolute;
        left: 50%;
        top: 45%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 90%;
        svg{
            height: 35px;
            path{
                fill: var(--eswislst-color-danger);
            }
        }
        h5{
            margin: 0 0 10px;
            font-size: 30px;
            line-height: 1.3;
        }
        p{
            margin: 0;
            line-height: 1.3;
        }
        .esbmark-empty-btn{
            background: var(--eswislst-color-danger);
            color: #fff;
            border-radius: 8px;
            padding: 11px 25px;
            margin: 30px 0 0;
            display: inline-block;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            &:hover{
                opacity: .8;
            }
        }
    }                
    .eswislst-action-bar {
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        gap: 4px;
        display: none;
        p, br {
            display: none;
        }                    
        .eswislst-action-btn{
            border: none;
            color: #fff;
            padding: 7px 16px;
            border-radius: 4px;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            text-decoration: none;
            justify-content: center;
            min-width: 100px;
            &.eswislst_view_all_trigger {
                background: var(--eswislst-color-primary);
                justify-content: center;
                transition: 0.5s all;
                &:hover {
                    opacity: .8;
                }
            }
            &.eswislst_delete_all_trigger {
                background: var(--eswislst-color-danger);
                transition: 0.5s all;
                &:hover {
                    opacity: .8;
                }
                &:disabled {
                    background: #918d8d;
                }
                svg {
                    fill: currentColor;
                    width: 15px;
                }
            }
            
        }
        @media screen and (max-width: 768px) {
            position: sticky;
            top: 0;
            z-index: 2;
            background: #fff;
            width: fit-content;
            padding: 10px 0;
        }
    }
    .eswislst-products {
        overflow: auto;
        display: none;
        flex-direction: column;
        &.eswislst-popup-products {
            height: 525px;
            max-height: fit-content;
        }
        .eswislst-add-to-wishlist-button {
            display: none;
        }
        @media screen and (max-width: 768px) {
            padding-bottom: 50px;
        }
    }
    .eswislst-product {
        display: flex;
        position: relative;
        align-items: center;
        border-bottom: 1px solid #E2E2E2;
        padding: 20px 20px;
        column-gap: 15px;
        position: relative;
        text-align: center;
        p {
            margin: 0;
            font-size: 16px;
            font-weight: bold;
        }
        .product-main {
            position: relative;
            flex-basis: 45%;
        }
        .price {
            flex-basis: 12%;
        }
        .quantity {
            flex-basis: 12%;
            .quantity-edit {
                display: flex;
                align-items: center;
                border: 1px solid rgba(43, 66, 38, 0.12);
                border-radius: 4px;
                padding: 2px 10px;
                justify-content: space-between;
                box-shadow: 0px 4px 17px rgba(0, 0, 0, 0.04);
                input {
                    padding: 0;
                    max-width: 55px;
                    font-weight: 600;
                    outline: none;
                    border: none;
                    appearance: none !important;
                    background: transparent;
                    color: currentColor;
                }
                .button-wrapper-action {
                    border: 1px solid rgba(43, 66, 38, 0.12);
                    border-radius: 2px;
                    display: flex;
                    button {
                        cursor: pointer;
                        padding: 0;
                        font-size: 0;
                        background: transparent;
                        border: 1px solid rgba(43, 66, 38, 0.12);
                        box-shadow: none;
                        border-radius: 0;
                        color: currentColor;
                        svg {
                            height: 16px;
                            padding: 4px 6px;
                            transition: 0.3s;
                            path {
                                fill: currentColor;
                            }
                        }
                    }
                }
            }
        }
        .subtotal {
            flex-basis: 12%;
            > p {
                display: flex;
                flex-direction: column;
            }
        }
        .button-area {
            flex-basis: 12%;
            .added_to_cart {
                display: none;
            }
            .add_to_cart_button,
            .button,
            .product_type_grouped {
                min-width: 100px;
                background: var(--eswislst-color-primary);
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 10px;
                transition: 0.3s;
                color: #fff;
                padding: 7px 16px;
                border-radius: 4px;
                font-size: 13px;
                text-decoration: none;
                &:hover {
                    opacity: .8;
                }
            }
        }
        &.eswislst-product-head {
            min-height: unset;
            display: none;
            flex-direction: row;
            p {
                font-weight: bold;
                font-size: 16px;
                text-decoration: none;
                transition: 0.5s all;
                display: block;
                color: currentColor;
                margin-bottom: 5px;
                line-height: 1.5;
            }
            .product-main {
                text-align: center;
            }
        }
        .eswislst-product-inner {
            display: flex;
            position: relative;
            gap: 20px;
            width: 100%;
            align-items: center;
            font-size: 16px;
            .eswislst-col-left {
                width: 70px;
                position: relative;
                span.eswislst-ajax-loader {
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    transform: translate(-50%, -50%);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    img {
                        height: 40px;
                    }
                }
                .eswislst-product-thumbnail {
                    width: 100%;
                    height: auto;
                    display: block;
                }
            }
            .eswislst-col-right {
                width: calc(100% - 70px);
                text-align: left;
                padding-right: 20px;
                .eswislst-product-title {
                    font-weight: bold;
                    text-decoration: none;
                    transition: 0.5s all;
                    display: block;
                    color: currentColor;
                    margin-bottom: 5px;
                    line-height: 1.5;
                    text-align: left;
                    &:hover{
                        opacity: .8;
                    }
                }
                .eswislst-product-metas {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                }
            }
        }
        label.eswislst-form-control.eswislst-remove-btn {
            display: flex;
            align-items: center;
            transition: 0.5s all;
            cursor: pointer;
            input {
                display: none;
            }
            .eswislst-close-icon {
                display: block;
                left: -5px;
                z-index: 1;
                top: -4px;
                height: 20px;
                width: 20px;
                &:after,
                &:before {
                    content: " ";
                    position: absolute;
                    left: 10px;
                    height: 10px;
                    width: 1px;
                    background-color: #cf2e2e;
                    top: 5px;
                }
            }
            &:hover {
                background: #cf2e2e;
                color: #fff;
                .eswislst-close-icon {
                    color: currentColor;
                    svg path {
                       fill: currentColor;
                    }
                }
            }
        }
        @media screen and (max-width: 768px) {
            padding: 20px 0;
            flex-direction: column;
            row-gap: 10px;
            align-items: flex-start;
            border-radius: 0;
            .label.eswislst-form-control.eswislst-remove-btn .eswislst-close-icon {
                left: 0;
            }
        }
        
    }
    &.eswislst-has-products {
        .eswislst-action-bar {
            display: flex;
        }
        .eswislst-products {
            display: flex;
        }
        .eswislst-empty-products {
            display: none;
        }
        .eswislst-product {
            &.eswislst-product-head {
                display: flex !important;
                @media screen and (max-width: 768px) { 
                    display: none !important;
                }
            }
        }
    }
}

.eswislst-pagination {
    margin-top: 50px;
    ul.eswislst-pagination-list {
        display: flex;
        list-style: none;
        gap: 5px;
        margin: 0;
        padding: 0;
        li {
            a, span {
                transition: 0.3s ease-in-out;
                background: var(--eswislst-color-primary);
                color: #fff;
                border-radius: 3px;
                padding: 7px 20px;
                font-size: initial;
                text-decoration: none;
                &.current, &:hover {
                    opacity: .8;
                }
            }
        }
    }
}

.eswislst-modal-close{
    cursor: pointer;
    position: absolute;
    right: 9px;
    top: 5px;
    width: 32px;
    height: 32px;
    opacity: 1;  
    position: absolute;
    right: -30px;
    top: -30px;  
    background: var(--eswislst-color-danger);
    border-radius: 100%;
}

.eswislst-close-icon-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 25px;
    height: 25px;
    opacity: 1;
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1490196078);
    z-index: 1;
}

.eswislst-modal-close:hover,
.eswislst-close-icon-close:hover {
    opacity: .8;
}

.eswislst-modal-close:before, .eswislst-modal-close:after,
.eswislst-close-icon-close:before, .eswislst-close-icon-close:after {
    content: " ";
    position: absolute;
    left: 15px;
    height: 13px;
    width: 2px;
    background-color: #fff;
    top: 9px;
}


.eswislst-modal-close::before,
.eswislst-close-icon-close:before {
    transform: rotate(45deg);
}
.eswislst-modal-close::after,
.eswislst-close-icon-close:after {
    transform: rotate(-45deg);
}
.woocommerce {
    .eswislst-add-to-wishlist-button {
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        position: relative;
        gap: 5px;
        margin-top: 0;
        padding: 0;
        border: none;
        background: transparent;
        transition: 0.3s ease-in-out;
        cursor: pointer;
        &:focus,
        &:focus-visible {
            border: none;
            box-shadow: none;
            outline: none;
        }
        .eswislst-tooltip {
            position: absolute;
            opacity: 0;
            top: -20px;
            left: 50%;
            transform: scale(1) translateX(-50%);
            transform-origin: bottom;
            font-size: 12px;
            background: #383838;
            color: #fff;
            width: max-content;
            padding: 4px 12px 3px 12px;
            border-radius: 3px;
            font-weight: 300;
            transition: 0.2s all;
            visibility: hidden;
        }
        .eswislst-wishlist-icon {
            display: flex;
            align-items: center;
            svg {
                fill: currentColor;
                height: 25px;
                width: 25px;
            }
        }
        &:hover {
            .eswislst-tooltip {
                transform: scale(1) translateX(-50%);
                visibility: visible;
                opacity: 1;
                top: -30px;
            }
            
        }
        .eswislst-ajax-loader {
            display: none;
            img {
                height: 18px;
                margin: auto;
                display: block;
            }
        }
        &.location-inside_thumbnail_area:not(.single-eswislst-add-to-wishlist-button) {
            position: absolute;
            &.position-top-right {
                top: 15px;
                right: 15px;
            }
            &.position-top-left {
                right: unset;
                left: 10px;
                top: 10px;
                transform: unset;
            }
            &.position-top-right {
                left: unset;
                top: 10px;
                right: 10px;
                transform: unset;
            }
            &.position-bottom-left {
                top: unset;
                right: unset;
                bottom: 10px;
                left: 10px;
                transform: unset;
            }
            &.position-bottom-right {
                top: unset;
                left: unset;
                bottom: 10px;
                right: 10px;
                transform: unset;
            }
            &.position-middle {
                top: 50%;
                left: 50%;
                right: unset;
                transform: translate(-50%, -50%);
            }
        }
        
    }
    .eswislst-add-to-cart-button-block {
        text-align: center;
    }
}


    
