/* Only the single-product native gallery. Existing live card CSS is untouched. */
body.single-product .woocommerce-product-gallery[data-gallery="default"] .ct-product-gallery-container > .emsa-save-tools {
    position: absolute;
    z-index: 10;
    top: 20px;
    inset-inline-end: 20px;
    display: grid;
    grid-template-columns: 44px;
    grid-auto-rows: 44px;
    gap: 6px;
    width: 44px;
    margin: 0;
}
body.single-product .woocommerce-product-gallery[data-gallery="default"] .ct-product-gallery-container > .emsa-save-tools > button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #dce3d5;
    border-radius: 50%;
    background: #fff;
    color: #34472f;
    font-size: 0;
    line-height: 0;
    box-shadow: 0 2px 8px #26372e12;
    cursor: pointer;
}
body.single-product .woocommerce-product-gallery[data-gallery="default"] .ct-product-gallery-container > .emsa-save-tools > button::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: var(--emsa-save-icon) center / contain no-repeat;
    mask: var(--emsa-save-icon) center / contain no-repeat;
}
body.single-product .woocommerce-product-gallery .emsa-save-tools > button[data-emsa-save="wishlist"] {
    --emsa-save-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1.1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8Z'/%3E%3C/svg%3E");
}
body.single-product .woocommerce-product-gallery .emsa-save-tools > button[data-emsa-save="compare"] {
    --emsa-save-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 7h15m-4-4 4 4-4 4M20 17H5m4-4-4 4 4 4'/%3E%3C/svg%3E");
}
body.single-product .woocommerce-product-gallery .emsa-save-tools > button[aria-pressed="true"] {
    background: #e1ead8;
    border-color: #71885e;
}
body.single-product .woocommerce-product-gallery .emsa-save-tools > button[aria-busy="true"] { opacity: .65; }
body.single-product .woocommerce-product-gallery .emsa-save-tools > button:focus-visible,
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:focus-visible {
    outline: 3px solid #34472f;
    outline-offset: 2px;
}
body.single-product .woocommerce-product-gallery .flexy-pills [role="button"]:focus-visible {
    outline: 3px solid #34472f;
    outline-offset: -3px;
}
body.single-product .woocommerce-product-gallery[data-gallery="default"] .ct-product-gallery-container:has(> .emsa-save-tools) > .woocommerce-product-gallery__trigger {
    top: auto;
    bottom: 20px;
    width: 44px;
    height: 44px;
}
@media (hover: hover) {
    body.single-product .woocommerce-product-gallery .emsa-save-tools > button:hover {
        background: #f4f7ef;
        border-color: #71885e;
    }
}
/* Native .zoomImg, picture/srcset, aspect ratios and the left rail are unchanged. */

/* Keep the native PhotoSwipe sprite visible over white product images. */
body.single-product .pswp .pswp__button--arrow--left::before,
body.single-product .pswp .pswp__button--arrow--right::before {
    background-color: #26372e !important;
}
