/* product single page */
.single-product .wopb-wishlist-add  {
    display: block;
    cursor: pointer;
    margin: 10px 0;
}
.single-product .wopb-wishlist-add strong {
    margin-right: 5px;
    font-size: 16px;
}
.single-product .wopb-wishlist-add span {
    display: flex;
    align-items: center;
    line-height: 1;
}
.single-product .wopb-wishlist-add span:last-child {
    display: none;
}
.single-product .wopb-wishlist-add.wopb-wishlist-active span:first-child {
    display: none;
}
.single-product .wopb-wishlist-add.wopb-wishlist-active span:last-child {
    display: flex;
}
.single-product .wopb-wishlist-add.wopb-wishlist-active span:last-child strong{
    font-size: 20px;
    line-height: 16px;
}
/* wishlist page */
.wopb-wishlist-popup{
    display: none;
    position: fixed;
    background-color: #e4ff00;
    padding: 20px;
    overflow: hidden;
    margin: 0 auto;
    width: 600px;
    top: 0%;
    left: 0%;
}
.wopb-wishlist-popup.active{
    display: block;
}
.wopb-modal-wrap .wopb-wishlist-modal {
    box-shadow: 0 10px 25px rgba(0,0,0,.5);
    background: #fff;
    overflow-y: scroll;
    max-height: 450px;
    padding: 0;
    border-radius: 4px;
}
.wopb-modal-wrap .wopb-wishlist-modal table {
    min-height: 80px;
}
.wopb-wishlist-modal table {
    margin: 0;
    border: 1px solid #ededed;
    border-collapse: collapse;
    border-spacing: 0;
}
.wopb-wishlist-modal table thead {
    background: #ededed;
}
.wopb-wishlist-modal table thead tr th {
    padding: 12px 15px;
    border: none;
}
.wopb-wishlist-modal table tbody tr td {
    padding: 12px 15px;
    border-width: 0 1px 1px 0;
    border-color: rgba(0, 0, 0, .08);
    vertical-align: middle;
}
.wopb-wishlist-modal table tbody tr td.wopb-wishlist-product-action {
    min-width: 160px;
}
.wopb-wishlist-modal table tbody tr td.wopb-wishlist-product-price {
    min-width: 170px;
}
.wopb-wishlist-modal table tbody tr td.wopb-wishlist-product-price del {
    margin-right: 8px;
}
.wopb-wishlist-modal table tbody tr td.wopb-wishlist-product-image a {
    line-height: 0;
    font-size: 0;
    display: inherit;
}
.wopb-wishlist-modal table tbody tr td.wopb-wishlist-product-image img {
    width: 80px;
}
.wopb-wishlist-modal table tbody tr td a.wopb-wishlist-remove {
    color: #f37262;
    font-size: 20px;
    height: 20px;
    width: 20px;
    line-height: 18px;
    text-decoration: none !important;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    border-radius: 100%;
    font-weight: 700;
    border: 0;
    text-align: center;
    display: inline-block;
}
.wopb-wishlist-modal table tbody tr td a.wopb-wishlist-remove:hover {
    color: #fff;
    background: red;
}
.wopb-wishlist-modal table tbody tr td.wopb-wishlist-product-action p.add_to_cart_inline {
    padding: 0 !important;
    border: none !important;
    margin-top: 4px;
}
.wopb-wishlist-modal table tbody tr td.wopb-wishlist-product-name {
    line-height: 1.3;
}
.single-product .wopb-wishlist-product-footer,
.wopb-wishlist-shortcode .wopb-wishlist-product-footer {
    padding: 12px 20px;
    background: #ededed;
    display: flex;
    align-items: center;
}
.single-product .wopb-wishlist-product-footer span:first-child,
.wopb-wishlist-shortcode .wopb-wishlist-product-footer span:first-child {
    display: none;
}
.single-product .wopb-wishlist-product-footer span:nth-child(2),
.wopb-wishlist-shortcode .wopb-wishlist-product-footer span:nth-child(2) {
    display: flex;
    margin-right: auto;
}
/* popup */
.wopb-modal-wrap {
    position: fixed;
    visibility: hidden;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    opacity: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}
.wopb-modal-wrap .wopb-modal-loading {
    position: absolute;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    top: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
}
.wopb-modal-wrap .wopb-modal-loading.active {
    opacity: 0.5;
    visibility: visible;
}
.wopb-modal-wrap .wopb-modal-loading .wopb-loading {
    left: 49%;
    top: 50%;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    margin-left: -30px;
    position: absolute;
    border: 0.4rem solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    animation: spin 1s infinite linear;
}
.wopb-modal-wrap.active {
    visibility: visible;
    opacity: 1;
}
.wopb-modal-wrap .wopb-modal-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
}
.wopb-modal-wrap .wopb-modal-content {
    max-width: 860px;
    height: 500px;
    margin-left: -430px;
    margin-top: -250px;
    left: 50%;
    top: 50%;
    position: absolute;
    border-radius: 4px;
}
.wopb-modal-wrap .wopb-modal-content.wopb-wishlist-modal-content {
    max-width: 700px;
    margin-left: -350px;
    overflow-y: scroll;
    height: auto;
}
.wopb-modal-wrap .wopb-modal-body-inner {
    position: relative;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
   }
    100% {
        transform: rotate(360deg);
   }
}
.wopb-modal-wrap .wopb-modal-close {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    text-indent: -9999px;
    padding: 0;
    border-radius: 100px;
    border: 1px solid #dadada;
    background: #fff;
    width: 25px;
    height: 25px;
    transition: 400ms;
}
.wopb-modal-wrap .wopb-modal-close:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    border-top: 1.5px solid;
    margin-top: -0.5px;
    margin-left: -7px;
    transform: rotate(45deg);
    color: #afafaf;
    transition: 400ms;
}
.wopb-modal-wrap .wopb-modal-close:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    height: 14px;
    border-left: 1.5px solid;
    margin-top: -7px;
    margin-left: -0.5px;
    transform: rotate(45deg);
    color: #afafaf;
    transition: 400ms;
}
.wopb-modal-wrap .wopb-modal-close:hover {
    border: 1px solid #f31616;
    background: #f31616;
}
.wopb-modal-wrap .wopb-modal-close:hover:before, .wopb-modal-wrap .wopb-modal-close:hover:after {
    color: #fff;
}
@media (max-width: 992px) {
    .wopb-modal-wrap .wopb-modal-content {
        left: 20px;
        right: 20px;
        top: 10%;
        margin: 0 auto;
        overflow-y: unset;
        height: auto;
    }
    .wopb-modal-wrap .wopb-modal-content.wopb-wishlist-modal-content {
        margin: 0 auto;
    }
    .wopb-modal-wrap .wopb-modal-content .wopb-quick-view-image {
        overflow: unset;
    }
    .wopb-wishlist-modal .wopb-wishlist-product-footer {
        display: none;
    }
}
@media (max-width: 768px) {
    .wopb-modal-wrap .wopb-modal-content {
        overflow-y: unset;
        left: 20px;
        right: 20px;
        height: auto;
        top: 10%;
        margin: 0 auto;
    }
    .wopb-modal-wrap .wopb-modal-content.wopb-wishlist-modal-content {
        margin: 0 auto;
    }
    .wopb-modal-wrap .wopb-modal-content .wopb-quick-view-image {
        height: auto;
        overflow: unset;
    }
    .wopb-modal-wrap .wopb-modal-content .wopb-quick-view-image img {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }
    .wopb-modal-wrap .wopb-wishlist-modal {
    height: 450px;
    }
    .wopb-wishlist-modal table thead {
        display: none;
    }
    .wopb-wishlist-modal table tbody tr {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    .wopb-wishlist-modal table tbody tr td {
        display: block;
        clear: both;
        border: none;
    }
}
