

#child-wishlist[open] {
    animation: child-wishlist-slide-in var(--child-ui-drawer-duration, 220ms) ease-out;
}

#child-wishlist[open].is-closing {
    animation: child-wishlist-slide-out var(--child-ui-drawer-duration, 220ms) ease-in forwards;
}

#child-wishlist::backdrop {
    background: rgb(var(--child-color-backdrop-rgb,0 0 0) / 40%);
    animation: child-wishlist-backdrop-in var(--child-ui-drawer-duration, 220ms) ease-out;
}

#child-wishlist.is-closing::backdrop {
    animation: child-wishlist-backdrop-out var(--child-ui-drawer-duration, 220ms) ease-in forwards;
}


#child-wishlist-title {
    outline: none;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

#child-wishlist .child-wishlist-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 2px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    background-clip: content-box;
    color: inherit;
}

#child-wishlist .child-wishlist-remove {
    color: var(--child-color-destructive,#fa5252);
    margin-top: calc((1lh - 44px) / 2);
}

#child-wishlist .child-wishlist-remove:hover {
    background-color: rgb(var(--child-color-shadow-rgb,0 0 0) / 5%);
}

#child-wishlist .child-wishlist-remove .ti {
    font-size: 16px;
}


#child-wishlist.is-empty .child-wishlist-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#child-wishlist.is-empty .child-wishlist-content > p {
    margin: 0;
}

#child-wishlist.is-empty .child-wishlist-footer {
    display: none;
}

#child-wishlist .child-wishlist-products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#child-wishlist .child-wishlist-products > li {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 44px;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: start;
    flex: 0 0 auto;
    min-width: 0;
    gap: .5rem 1rem;
    margin: 0;
    padding: .25rem 1rem 1rem;
    border: 1px solid var(--child-color-border-light, #e9ecef);
    border-radius: var(--child-radius-surface, 10px);
    background: var(--child-color-surface, #fff);
    box-shadow: none;
}

.child-wishlist-product-image {
    grid-column: 1;
    grid-row: 1 / 3;
    display: block;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: max(0px, calc(var(--child-radius-surface, 22px) - .5rem - 1px - .625rem));
}

.child-wishlist-product-heading {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.child-wishlist-product-details {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    min-width: 0;
}

#child-wishlist .child-wishlist-remove {
    position: relative;
    z-index: 2;
    grid-column: 3;
    grid-row: 1 / 3;
}

.child-wishlist-product-title {
    display: block;
    color: var(--child-color-text, #000);
    font-weight: 600;
    line-height: 1.25;
}

.child-wishlist-product-title > span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.child-wishlist-product-title::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
}

#child-wishlist .child-wishlist-price {
    margin: 0;
    font-size: .875rem;
    line-height: 1.4;
}

#child-wishlist .child-wishlist-price :is(dt, dd) {
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-wrap: anywhere;
}

#child-wishlist .child-wishlist-price dt { font-weight: 600; }
#child-wishlist .child-wishlist-price dd { font-weight: 400; }




#child-wishlist [data-mvo-wishlist-status] {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
}

#child-wishlist [data-mvo-wishlist-status]:empty {
    display: none;
}


.child-wishlist-footer small {
    display: block;
    margin-top: 0.75rem;
    text-align: center;
    color: var(--child-color-text-muted,#666);
}

.mvo-wishlist-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--child-color-neutral-border,#e0e0e0);
    border-radius: var(--child-radius-control, 5px);
    background: var(--child-color-neutral-bg,#fff);
    color: var(--child-color-neutral-text,#495057);
    line-height: 1.5;
}

.mvo-wishlist-save:hover,
.mvo-wishlist-save:focus-visible {
    background: var(--child-color-surface-hover,#f8f9fa);
    color: var(--child-color-neutral-text,#495057);
}

.mvo-wishlist-save .ti {
    display: block;
    flex-shrink: 0;
    font-size: 24px;
}

.mvo-wishlist-save.is-saved,
.mvo-wishlist-save.is-saved:hover {
    color: #fa5252;
}


.single-product .summary .mvo-wishlist-save-icon,
.single-product .woocommerce-product-gallery > .mvo-wishlist-save-icon {
    width: 44px;
    height: 44px;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.single-product .woocommerce-product-gallery > .mvo-wishlist-save-icon {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 4;
    width: 40px;
    height: 40px;
    background: #fff;
    box-shadow: none;
}

.single-product .summary .mvo-wishlist-save-icon:hover,
.single-product .summary .mvo-wishlist-save-icon:focus-visible {
    background: var(--child-color-surface-hover,#f8f9fa);
}

.single-product .woocommerce-product-gallery > .mvo-wishlist-save-icon:hover,
.single-product .woocommerce-product-gallery > .mvo-wishlist-save-icon:focus-visible,
.single-product .woocommerce-product-gallery > .mvo-wishlist-save-icon.is-saved {
    background: #fff;
    box-shadow: none;
}

.single-product .woocommerce-product-gallery > .mvo-wishlist-save-icon .ti {
    font-size: 22px;
}

.site-main ul.products li.product {
    position: relative;
}

.site-main ul.products li.product .mvo-wishlist-save-icon {
    position: absolute;
    z-index: 2;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgb(var(--child-color-shadow-rgb,0 0 0) / 6%);
    opacity: 1;
    transition: opacity 180ms ease, background-color 180ms ease, color 180ms ease;
}

.site-main ul.products li.product .mvo-wishlist-save-icon.is-saved,
.site-main ul.products li.product .mvo-wishlist-save-icon.is-saved:hover,
.site-main ul.products li.product .mvo-wishlist-save-icon.is-saved:focus-visible {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: var(--child-color-selection-text,#fa5252);
}

@media (hover: hover) and (pointer: fine) {
    .site-main ul.products li.product:not(:hover):not(:focus-within) .mvo-wishlist-save-icon:not(.is-saved) {
        /* Keep the action tabbable so keyboard focus can reveal it. */
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes child-wishlist-slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes child-wishlist-slide-out {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

@keyframes child-wishlist-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes child-wishlist-backdrop-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .site-main ul.products li.product .mvo-wishlist-save-icon { transition: none; }

    #child-wishlist[open],
    #child-wishlist[open].is-closing,
    #child-wishlist::backdrop,
    #child-wishlist.is-closing::backdrop {
        animation: none;
    }
}

.child-wishlist-footer .child-ui-button { width: 100%; }
