.wl-add-loop.wl-add-loop--before_image {
    top: 16px;
    right: 16px;
    left: auto;
    width: 38px;
    height: 38px;
}

.product-inner-wrap:has(> .wl-add-loop--before_image) {
    position: relative;
}

.product-inner-wrap > .wl-add-loop.wl-add-loop--before_image {
    right: 26px;
}

.single-product .col-right-product > .wl-add-loop.wl-add-loop--before_image {
    right: 31px;
}

.wl-add-loop.wl-add-loop--before_image .wl-add.woocommerce .wl-add__button,
.wl-add-loop.wl-add-loop--before_image .wl-add.woocommerce .wl-add__button:hover {
    display: block;
    box-sizing: border-box;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 50%;
    background: rgba(26, 12, 10, 0.6);
    color: #fcf7f8;
    font-size: 16px;
    line-height: 1;
    box-shadow: none;
    text-shadow: none;
    opacity: 1;
}

.wl-add-loop.wl-add-loop--before_image .wl-add .wl-add__icon,
.wl-add-loop.wl-add-loop--before_image .wl-add .wl-add__icon-state {
    width: 16px;
    height: 16px;
}

.wl-add-loop.wl-add-loop--before_image .wl-add.woocommerce .wl-add__button.is-saved {
    color: #ff97ba;
}

.wl-add-loop.wl-add-loop--before_image .wl-add__button:focus-visible {
    outline: 2px solid #ca385a;
    outline-offset: 3px;
}

.wl-add-loop--before_image .wl-add__dialog {
    pointer-events: auto;
}

.wl-add .wl-add__dialog.woocommerce button.button.wl-add__create-submit,
.wl-add .wl-add__dialog.woocommerce button.button.wl-add__close {
    position: static;
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: auto !important;
    min-width: 80px;
    max-width: 100%;
    height: auto !important;
    min-height: 40px;
    margin: 0 !important;
    padding: 9px 16px !important;
    border: 1px solid #ca385a;
    border-radius: 4px;
    background: #ca385a;
    color: #fff;
    font-size: 14px !important;
    font-family: inherit;
    font-weight: 600;
    line-height: 20px !important;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    white-space: normal;
    overflow: visible;
}

.wl-add .wl-add__dialog.woocommerce button.button.wl-add__close {
    border-color: #d8d5d4;
    background: #fff;
    color: #1c1b1a;
}

.wl-add .wl-add__dialog .wl-add__create-submit-label {
    font: inherit;
    line-height: inherit;
    white-space: normal;
}

.wl-add .wl-add__dialog .wl-add__create-input {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #c9c5c4;
    border-radius: 4px;
    background: #fff;
    color: #1c1b1a;
    font: inherit;
}

@media (hover: hover) and (pointer: fine) {
    .wl-add-loop.wl-add-loop--before_image {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    li.product:hover .wl-add-loop--before_image,
    .col-right-product:hover > .wl-add-loop--before_image,
    .wl-add-loop.wl-add-loop--before_image:focus-within,
    .wl-add-loop.wl-add-loop--before_image:has(dialog[open]) {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wl-add-loop.wl-add-loop--before_image {
        transition: none;
    }
}
