.product-card {
    position: relative;
}

.wishlist-form--card {
    position: absolute;
    inset: .7rem .7rem auto auto;
}

.wishlist-form--detail {
    margin-top: 1rem;
}

.wishlist-button {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .45rem .85rem;
    border: 1px solid var(--line, #ded1c7);
    border-radius: 999px;
    background: var(--paper, #fffaf5);
    color: var(--burgundy, #651f39);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.wishlist-form--card .wishlist-button {
    width: 44px;
    padding: 0;
    box-shadow: 0 1px 5px rgb(41 21 25 / .1);
}

.wishlist-button:hover,
[data-saved="true"] .wishlist-button {
    border-color: var(--burgundy, #651f39);
    background: var(--burgundy, #651f39);
    color: #fffaf5;
}

.wishlist-button[aria-disabled="true"] {
    cursor: wait;
}

.wishlist-heart {
    font-family: system-ui, sans-serif;
    font-size: 1.4rem;
    line-height: 1;
}

.wishlist-heart--solid,
[data-saved="true"] .wishlist-heart--outline {
    display: none;
}

[data-saved="true"] .wishlist-heart--solid {
    display: inline;
}

.wishlist-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-bottom: 1.25rem;
}

.wishlist-heading p {
    margin: 0;
}

.wishlist-empty-heart {
    display: block;
    margin-bottom: .5rem;
    color: var(--burgundy, #651f39);
    font-family: system-ui, sans-serif;
    font-size: 2.75rem;
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
    .wishlist-button { transition: none; }
}
