.cw-wishlist-btn-container {
    margin-top: 15px;
    margin-bottom: 15px;
}

.cw-add-to-wishlist {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.cw-default-icon {
    color: #ff0000 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cw-icon {
    width: 20px !important;
    height: 20px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.cw-popup {
    display: none;
    position: fixed;
    z-index: 99999;
    bottom: 20px;
    right: 20px;
}

.cw-popup-content {
    background-color: #f5eee9;
    padding: 20px 25px;
    border-radius: 8px;
    min-width: 280px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #eee;
}

.cw-popup-content p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    margin-top: 5px;
    font-family: "Ivory";
}

.cw-close {
    position: absolute;
    right: 12px;
    top: 8px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.cw-close:hover,
.cw-close:focus {
    color: #000;
    text-decoration: none;
}

.cw-view-wishlist-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: "Ivory";
    color: #AE2219 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 13px 15px !important;
    background-color: transparent !important;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.cw-view-wishlist-btn:hover {
    background-color: #AE2219 !important;
    color: #fff !important;
}

.cw-view-wishlist-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%0A%3Csvg width='94' height='30' viewBox='0 0 94 30' fill='none' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0.001302 26.3957C0.00130206 24.9229 1.19521 23.729 2.66797 23.729C4.14073 23.729 5.33464 24.9229 5.33464 26.3957C5.33464 27.8685 4.14073 29.0624 2.66797 29.0624C1.19521 29.0624 0.00130195 27.8685 0.001302 26.3957ZM87.7338 26.3965C87.7338 24.9237 88.9277 23.7298 90.4005 23.7298C91.8732 23.7298 93.0671 24.9237 93.0671 26.3965C93.0671 27.8693 91.8732 29.0632 90.4005 29.0632C88.9277 29.0632 87.7338 27.8693 87.7338 26.3965ZM2.66797 26.3957L2.66797 25.8957L90.4005 25.8965L90.4005 26.3965L90.4004 26.8965L2.66796 26.8957L2.66797 26.3957Z' fill='%23AE2219'/%3E%3Cpath d='M0.001302 2.6675C0.0013021 1.19474 1.19521 0.000831423 2.66797 0.000831604C4.14073 0.000831785 5.33464 1.19474 5.33464 2.6675C5.33464 4.14026 4.14073 5.33417 2.66797 5.33416C1.19521 5.33416 0.00130191 4.14026 0.001302 2.6675ZM87.7338 2.66798C87.7338 1.19522 88.9277 0.0013126 90.4005 0.00131278C91.8732 0.00131296 93.0671 1.19522 93.0671 2.66798C93.0671 4.14074 91.8732 5.33465 90.4005 5.33465C88.9277 5.33465 87.7338 4.14074 87.7338 2.66798ZM2.66797 2.6675L2.66797 2.1675L90.4005 2.16798L90.4005 2.66798L90.4004 3.16798L2.66797 3.1675L2.66797 2.6675Z' fill='%23AE2219'/%3E%3Cline x1='2.92578' y1='3.89453' x2='2.92578' y2='26.3957' stroke='%23AE2219'/%3E%3Cline x1='90.9258' y1='2.39258' x2='90.9258' y2='24.8937' stroke='%23AE2219'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    pointer-events: none;
}

h4.cw-wishlist-title {
    text-align: center;
    margin-bottom: 30px;
    font-family: "Ivory";
    font-size: 30px;
    color: #3E2D2D;
}

.cw-wishlist-table .product-thumbnail img {
    max-width: 80px;
    height: auto;
}

.cw-wishlist-table td {
    vertical-align: middle;
}

.cw-remove-from-wishlist.remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: transparent;
    color: #3E2D2D !important;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
    margin: 0 auto;
    border: 1px solid #3E2D2D;
    transition: all 0.2s ease;
    font-family: auto;
}

.cw-remove-from-wishlist.remove:hover {
    background-color: #AE2219;
    color: #FFFFFF !important;
    border-color: #AE2219;
    transform: rotate(90deg);
}

ul.products li.product,
.products .product {
    position: relative;
}

.cw-position-top-right,
.cw-position-top-left {
    position: absolute;
    top: 8px !important;
    z-index: 99;
    margin: 0 !important;
}

.cw-position-top-right {
    right: 0px !important;
}

.cw-position-top-left {
    left: 0px !important;
}

.cw-icon-only-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.cw-icon-only-btn:hover {
    transform: scale(1.05) !important;
}

#bulk-add-to-cart {
    display: none !important;
}

.cw-wishlist-table {
    border-collapse: collapse !important;
    width: 100%;
    margin-bottom: 30px;
}

.cw-wishlist-table th,
.cw-wishlist-table td {
    border: none !important;
    background: transparent !important;
    font-family: "Ivory";
    color: #3E2D2D !important;
    padding: 20px 10px !important;
    vertical-align: middle;
}

.cw-wishlist-table tbody>tr:nth-child(odd)>td,
.cw-wishlist-table tbody>tr:nth-child(odd)>th,
.cw-wishlist-table tbody>tr:nth-child(even)>td,
.cw-wishlist-table tbody>tr:nth-child(even)>th {
    background-color: transparent !important;
}

.cw-wishlist-table thead th {
    font-weight: 600;
    border-top: 1px solid #3E2D2D !important;
    border-bottom: 1px solid #3E2D2D !important;
    text-align: center;
}

.cw-wishlist-table th.product-name,
.cw-wishlist-table td.product-name {
    text-align: left !important;
}

.cw-wishlist-table th.product-price,
.cw-wishlist-table td.product-price {
    text-align: center !important;
}

.cw-wishlist-table th.product-stock-status,
.cw-wishlist-table td.product-stock-status {
    text-align: center !important;
}

.cw-wishlist-table th.product-remove,
.cw-wishlist-table td.product-remove {
    width: 60px;
    text-align: center !important;
}

.cw-wishlist-table th.product-thumbnail,
.cw-wishlist-table td.product-thumbnail {
    width: 120px;
    text-align: center !important;
}

.cw-wishlist-table th.product-add-to-cart,
.cw-wishlist-table td.product-add-to-cart {
    width: 160px;
    text-align: center !important;
}

.cw-wishlist-table h4 {
    text-align: center;
    font-family: "Ivory";
    font-size: 30px;
    margin-bottom: 40px;
}

.cw-wishlist-table tr {
    border-bottom: 1px solid #3E2D2D !important;
}

.cw-wishlist-table td p,
.cw-wishlist-table td .stock {
    margin: 0 !important;
}

.cw-wishlist-table td .stock.in-stock,
.cw-wishlist-table td .stock.out-of-stock {
    display: inline-block !important;
    vertical-align: middle !important;
}

.cw-wishlist-table tbody tr td:nth-child(3) a {
    font-size: 14px;
    color: #3E2D2D;
    font-weight: 500;
}

.cw-wishlist-table tbody tr td:nth-child(3) a:hover {
    color: #B28F03;
}

.cw-wishlist-table .single-add-to-cart {
    position: relative;
    background: transparent !important;
    width: 95px;
    height: 31px;
    font-size: 14px !important;
    color: #3E2D2D !important;
    border-radius: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none !important;
    margin: 0 auto;
}

.cw-wishlist-table .single-add-to-cart:hover {
    background: #AE2219 !important;
    color: #fff !important;
}

.cw-wishlist-table .single-add-to-cart::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%0A%3Csvg width='96' height='28' viewBox='0 0 96 28' fill='none' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M-9.15527e-05 24.6672C-9.15527e-05 26.1399 1.19382 27.3339 2.66658 27.3339C4.13933 27.3339 5.33324 26.1399 5.33324 24.6672C5.33324 23.1944 4.13933 22.0005 2.66658 22.0005C1.19382 22.0005 -9.15527e-05 23.1944 -9.15527e-05 24.6672ZM89.9661 24.668C89.9661 26.1407 91.16 27.3346 92.6328 27.3346C94.1056 27.3346 95.2995 26.1407 95.2995 24.668C95.2995 23.1952 94.1056 22.0013 92.6328 22.0013C91.16 22.0013 89.9661 23.1952 89.9661 24.668ZM-9.15527e-05 2.66797C-9.15527e-05 4.14073 1.19382 5.33464 2.66658 5.33464C4.13933 5.33464 5.33324 4.14073 5.33324 2.66797C5.33324 1.19521 4.13933 0.001302 2.66658 0.001302C1.19382 0.001302 -9.15527e-05 1.19521 -9.15527e-05 2.66797ZM89.9661 2.66875C89.9661 4.14151 91.16 5.33542 92.6328 5.33542C94.1056 5.33542 95.2995 4.14151 95.2995 2.66875C95.2995 1.19599 94.1056 0.00208187 92.6328 0.00208187C91.16 0.00208187 89.9661 1.19599 89.9661 2.66875ZM2.66658 24.6672L2.66657 25.1672L92.6328 25.168L92.6328 24.668V24.168L2.66658 24.1672L2.66658 24.6672ZM2.66658 2.66797L2.66657 3.16797L92.6328 3.16875L92.6328 2.66875V2.16875L2.66658 2.16797L2.66658 2.66797ZM2.63281 2.79373L2.13281 2.79373L2.13281 24.668H2.63281H3.13281L3.13281 2.79373L2.63281 2.79373ZM92.605 2.79242H92.105V24.6666H92.605H93.105V2.79242H92.605Z' fill='%23AE2219'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    pointer-events: none;
}


@media (max-width: 767px) {
    .cw-wishlist-table h4 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .cw-wishlist-table {
        display: block;
        white-space: normal;
        overflow-x: hidden;
    }

    .cw-wishlist-table tbody {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 20px;
        flex-wrap: wrap;
    }

    .cw-wishlist-table tbody tr {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 47%;
        gap: 12px;
        border: 1px solid #eee !important;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        position: relative;
        padding: 10px 0;
    }

    .cw-wishlist-table tbody td {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    .cw-wishlist-table tbody td.product-remove {
        position: absolute;
        top: 15px;
        right: calc(100% - 21px);
        width: auto !important;
        padding: 0 !important;
        z-index: 10;
        justify-content: flex-end;
    }

    .cw-wishlist-table tbody td.product-remove .cw-remove-from-wishlist.remove {
        margin: 0 !important;
    }

    .cw-wishlist-table tbody td.product-thumbnail img {
        width: 100% !important;
        height: auto;
        max-width: 100%;
        margin: 0 auto;
    }

    .cw-wishlist-table tbody td.product-name a {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;
    }


    .cw-wishlist-table tbody td.product-price {
        font-size: 15px;
    }

    .cw-wishlist-table tbody td.product-stock-status>div {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .cw-wishlist-table .single-add-to-cart {
        margin: 0 auto !important;
        width: 95px !important;
        height: 31px !important;
    }

    .cw-wishlist-table thead {
        display: none !important;
    }

    .cw-popup {
        right: 15px;
        left: 20%;
        bottom: 15px;
    }

    .cw-popup-content {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
        padding: 15px;
    }

    .cw-close {
        right: 9px;
        top: 2px;
        font-size: 22px;
    }
}

@media (max-width: 375px) {
    .cw-wishlist-table tbody {
        gap: 8px;
    }
}