.wishlist-btn {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid #e2d3c2;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #7a6657;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(58, 37, 23, 0.1);
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.wishlist-btn__icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: fill 0.2s ease;
}

.wishlist-btn--overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.wishlist-btn--inline {
    position: static;
    z-index: auto;
}

.quick-edit-btn {
    box-sizing: border-box;
    position: absolute;
    top: 10px;
    right: 58px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid #e2d3c2;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #1f6b45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(58, 37, 23, 0.1);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease,
        box-shadow 0.2s ease, transform 0.2s ease;
}

.quick-edit-btn--inline {
    position: static;
    flex: 0 0 40px;
}

.quick-edit-btn__icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .quick-edit-btn:hover {
        color: #14532d;
        border-color: rgba(31, 107, 69, 0.35);
        background-color: #f4fbf6;
        box-shadow: 0 4px 10px rgba(58, 37, 23, 0.16);
        transform: scale(1.06);
    }
}

.quick-edit-btn:focus-visible {
    outline: 3px solid rgba(15, 59, 31, 0.28);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .wishlist-btn:hover:not(:disabled) {
        color: #c0392b;
        border-color: rgba(192, 57, 43, 0.35);
        background-color: #fffaf8;
        box-shadow: 0 4px 10px rgba(58, 37, 23, 0.16);
        transform: scale(1.06);
    }
}

.wishlist-btn:focus-visible {
    outline: 3px solid rgba(15, 59, 31, 0.28);
    outline-offset: 2px;
}

.wishlist-btn.is-active {
    color: #c0392b;
    border-color: rgba(192, 57, 43, 0.35);
    background-color: #fff7f5;
}

.wishlist-btn.is-active .wishlist-btn__icon {
    fill: currentColor;
}

.wishlist-btn.is-loading,
.wishlist-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.wishlist-btn:disabled:not(.is-loading) {
    cursor: not-allowed;
}

/* Product detail actions inherit the storefront's navy/blue/orange language. */
.pd-page .wishlist-btn,
.pd-page .quick-edit-btn {
    border-color: var(--mtp-line, #e1e9f1);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(9, 45, 83, .08);
}

.pd-page .wishlist-btn { color: var(--mtp-navy, #06376f); }
.pd-page .quick-edit-btn { color: var(--mtp-blue, #0868b9); }

.pd-page .wishlist-btn:hover:not(:disabled),
.pd-page .wishlist-btn.is-active {
    border-color: rgba(250, 77, 18, .4);
    color: var(--mtp-orange, #fa4d12);
    background: #fff4ef;
    box-shadow: 0 4px 10px rgba(9, 45, 83, .14);
}

.pd-page .quick-edit-btn:hover {
    border-color: rgba(8, 104, 185, .4);
    color: var(--mtp-blue, #0868b9);
    background: #edf7ff;
    box-shadow: 0 4px 10px rgba(9, 45, 83, .14);
}

.pd-page .wishlist-btn:focus-visible,
.pd-page .quick-edit-btn:focus-visible {
    outline-color: rgba(8, 104, 185, .32);
}

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

.sc-wishlist-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10000;
    max-width: min(380px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 8px;
    background: #1f3228;
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translateY(120px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sc-wishlist-toast.is-error {
    background: #8f2d24;
}

.sc-wishlist-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
