/* Only hide the WooCommerce AJAX-generated "view cart" link after the modal JS initializes. */
body.ifc-cart-popup-ready a.added_to_cart.wc-forward,
body.ifc-cart-popup-ready form.cart a.added_to_cart,
body.ifc-cart-popup-ready .elementor-widget-woocommerce-product-add-to-cart a.added_to_cart { display: none !important; }
body.ifc-cart-popup-ready .ifc-cart-popup-consumed { display: none !important; }
body.ifc-cart-popup-open { overflow: hidden !important; }
#ifc-cart-popup[hidden] { display: none !important; }
#ifc-cart-popup {
    --ifc-cart-accent: #192044;
    --ifc-cart-green: #27965d;
    position: fixed !important; inset: 0 !important; z-index: 2147483000 !important;
    display: flex; justify-content: center; align-items: center;
    box-sizing: border-box; padding: 20px; overflow: auto;
    background: rgba(15, 23, 42, .51); font-family: inherit;
    animation: ifc-cart-fade .18s ease-out both;
}
#ifc-cart-popup *, #ifc-cart-popup *::before, #ifc-cart-popup *::after { box-sizing: border-box; }
#ifc-cart-popup .ifc-cart-popup__panel {
    position: relative; isolation: isolate; width: 100%; max-width: 465px;
    max-height: 100%; overflow: auto; margin: auto; background: #fff; color: #192044;
    padding: 34px 28px 28px; border-radius: 16px; text-align: center;
    box-shadow: 0 18px 60px rgba(15, 23, 42, .24); outline: none;
    animation: ifc-cart-enter .23s cubic-bezier(.2,.75,.25,1) both;
}
#ifc-cart-popup .ifc-cart-popup__close {
    position: absolute; top: 10px; right: 10px; background: transparent; color: #64748b;
    border: 0; border-radius: 6px; box-shadow: none; padding: 6px; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
#ifc-cart-popup .ifc-cart-popup__close:hover { background: #f1f5f9; color: #192044; }
#ifc-cart-popup .ifc-cart-popup__success {
    display: flex; align-items: center; justify-content: center; width: 82px; height: 82px;
    border-radius: 50%; background: #effaf3; color: var(--ifc-cart-green); margin: 0 auto 17px;
}
#ifc-cart-popup h2 { font-family: inherit; font-size: 24px; font-weight: 700; letter-spacing: -.025em; line-height: 1.3; margin: 0 0 10px; color: var(--ifc-cart-accent); }
#ifc-cart-popup p { font-family: inherit; font-size: 14px; line-height: 1.6; font-weight: 400; color: #64748b; margin: 0 0 25px; }
#ifc-cart-popup .ifc-cart-popup__actions { display: flex; gap: 10px; flex-wrap: wrap; }
#ifc-cart-popup .ifc-cart-popup__actions > * {
    flex: 1 1 155px; min-width: 0; min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    margin: 0; padding: 11px 14px; border: 1px solid var(--ifc-cart-accent); border-radius: 6px;
    font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.35;
    letter-spacing: normal; text-align: center; text-transform: none; text-decoration: none; cursor: pointer;
    box-shadow: none; transition: background .15s, color .15s;
}
#ifc-cart-popup .ifc-cart-popup__continue { background: #fff; color: var(--ifc-cart-accent); }
#ifc-cart-popup .ifc-cart-popup__continue:hover { background: #f0f2f8; color: var(--ifc-cart-accent); }
#ifc-cart-popup .ifc-cart-popup__cart { background: var(--ifc-cart-accent); color: #fff; }
#ifc-cart-popup .ifc-cart-popup__cart:hover { background: #303a62; color: #fff; }
#ifc-cart-popup button:focus-visible, #ifc-cart-popup a:focus-visible { outline: 2px solid #5876bd; outline-offset: 3px; }
@keyframes ifc-cart-fade { from {opacity: 0;} to {opacity: 1;} }
@keyframes ifc-cart-enter { from {opacity: 0; transform: translateY(8px) scale(.97);} to {opacity: 1; transform: none;} }
@media (max-width: 420px) { #ifc-cart-popup { padding: 14px; } #ifc-cart-popup .ifc-cart-popup__panel { padding: 28px 19px 21px; } #ifc-cart-popup h2 { font-size: 21px; } #ifc-cart-popup .ifc-cart-popup__actions > * { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { #ifc-cart-popup, #ifc-cart-popup .ifc-cart-popup__panel { animation: none; } }
