/**
 * Shared wishlist toast chrome for archive cards, wishlist, and PDP.
 * 1.6.5: optical center — fit-content width; force link color/display so
 *   Elementor `a { color: navy; display:block }` cannot leave an invisible
 *   "View wishlist" gap on the right of the navy pill.
 */
.ecp-pdp-wl-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(12px);
    z-index: 100000;
    width: max-content;
    width: fit-content;
    max-width: calc(100vw - 32px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 18px;
    line-height: 1.25;
    border-radius: 8px;
    background: #2a3a52;
    color: #f5f3ef;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    box-shadow: 0 8px 24px rgba(42, 58, 82, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    box-sizing: border-box;
}
.ecp-pdp-wl-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.ecp-pdp-wl-toast-inner {
    display: inline;
    text-align: center;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
}
/* High-specificity + !important: Elementor global `a` sets color to navy
   (#2a3a52 = toast bg) and display:block, which hid "View wishlist" but still
   reserved ~90px — left-biased empty gap. */
.ecp-pdp-wl-toast a.ecp-pdp-wl-toast-link,
.ecp-pdp-wl-toast .ecp-pdp-wl-toast-link {
    color: #f5f3ef !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    margin: 0 0 0 8px !important;
    padding: 0 !important;
    font-weight: 700 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    vertical-align: baseline;
    display: inline !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    position: static !important;
}
.ecp-pdp-wl-toast a.ecp-pdp-wl-toast-link:hover,
.ecp-pdp-wl-toast a.ecp-pdp-wl-toast-link:focus,
.ecp-pdp-wl-toast .ecp-pdp-wl-toast-link:hover,
.ecp-pdp-wl-toast .ecp-pdp-wl-toast-link:focus {
    color: #fff !important;
}

/* Hide YITH native feedback banners — shared navy toast is the only UX. */
.yith-wcwl-add-to-wishlist__feedback,
.yith-wcwl-feedback-messages-container,
.yith-wcwl-popup-feedback,
.yith-wcwl-feedback-modal,
.yith-wcwl-feedback,
.yith-wcwl-notice,
.yith-wcwl-add-notice,
.woocommerce-message.yith-wcwl-message {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}
