.rr-wishlist-feedback-toast,
#rrCartFeedbackToast,
.rr-cart-feedback-toast,
#sharedProductToast,
.shared-toast {
    position: fixed !important;
    top: max(18px, env(safe-area-inset-top)) !important;
    right: max(18px, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 2147483600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-width: 220px !important;
    max-width: min(380px, calc(100vw - 36px)) !important;
    padding: 12px 15px !important;
    border: 1px solid rgba(255, 255, 255, .24) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #22c55e, #15803d) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(21, 128, 61, .28) !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.rr-wishlist-feedback-toast {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(16px, -8px, 0) !important;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease !important;
}

.rr-wishlist-feedback-toast::before,
#rrCartFeedbackToast::before,
.rr-cart-feedback-toast::before,
#sharedProductToast::before,
.shared-toast::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.rr-wishlist-feedback-toast.is-remove,
#rrCartFeedbackToast.is-error,
.rr-cart-feedback-toast.is-error,
#sharedProductToast.is-error,
.shared-toast.is-error {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    box-shadow: 0 14px 34px rgba(185, 28, 28, .27) !important;
}

.rr-wishlist-feedback-toast.is-remove::before,
#rrCartFeedbackToast.is-error::before,
.rr-cart-feedback-toast.is-error::before,
#sharedProductToast.is-error::before,
.shared-toast.is-error::before {
    content: "×";
}

.rr-wishlist-feedback-toast.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Override older theme-specific orange/blue cart-toast palettes. */
html body:not(.admin) #rrCartFeedbackToast:not(.is-error),
html body:not(.admin) .rr-cart-feedback-toast:not(.is-error),
html body:not(.admin) #sharedProductToast:not(.is-error),
html body:not(.admin) .shared-toast:not(.is-error) {
    --rr-cart-toast-bg: #22c55e !important;
    --rr-cart-toast-bg-2: #15803d !important;
    --rr-cart-toast-shadow: rgba(21, 128, 61, .28) !important;
    background: linear-gradient(135deg, #22c55e, #15803d) !important;
    box-shadow: 0 14px 34px rgba(21, 128, 61, .28) !important;
}

html body:not(.admin) #rrCartFeedbackToast.is-error,
html body:not(.admin) .rr-cart-feedback-toast.is-error,
html body:not(.admin) #sharedProductToast.is-error,
html body:not(.admin) .shared-toast.is-error {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    box-shadow: 0 14px 34px rgba(185, 28, 28, .27) !important;
}

@media (max-width: 640px) {
    .rr-wishlist-feedback-toast,
    #rrCartFeedbackToast,
    .rr-cart-feedback-toast,
    #sharedProductToast,
    .shared-toast {
        top: max(10px, env(safe-area-inset-top)) !important;
        right: max(10px, env(safe-area-inset-right)) !important;
        bottom: auto !important;
        left: auto !important;
        min-width: 0 !important;
        max-width: calc(100vw - 20px) !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
        font-size: 13px !important;
    }
}
