/* Cart feedback stays lightweight and reuses the product image already on the page. */
.cart-notice {
    position: fixed;
    top: 24px;
    right: 24px;
    left: auto;
    z-index: 10050;
    width: 340px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    padding: 0;
    border: 1px solid #ecdccc;
    border-radius: 14px;
    background: #fff;
    color: #193f61;
    box-shadow: 0 8px 28px #1734531c, 0 2px 5px #17345306;
    overflow: hidden;
    animation: cart-notice-enter .28s ease-out;
}
.cart-notice[hidden] { display: none !important; }
.cart-notice-body { display: flex; align-items: center; gap: 12px; padding: 14px 32px 14px 15px; }
.cart-notice-visual { position: relative; flex: 0 0 48px; height: 48px; }
.cart-notice-product-image { display: block; width: 48px; height: 48px; object-fit: contain; padding: 4px; border: 1px solid #e8edf2; border-radius: 10px; background: #fff; }
.cart-notice-icon { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 21px; height: 21px; border: 2px solid #fff; border-radius: 50%; background: #21886a; color: #fff; }
.cart-notice-icon svg { width: 13px; height: 13px; }
.cart-notice-warning { display: none; }
.cart-notice-copy { min-width: 0; flex: 1; }
.cart-notice-copy strong { display: block; font-size: 14px; line-height: 1.4; font-weight: 650; letter-spacing: -.2px; }
.cart-notice-copy .cart-notice-message { margin: 3px 0 0; font-size: 11px; line-height: 1.5; color: #526b80; overflow-wrap: anywhere; }
.cart-notice-copy .cart-notice-meta { display: block; margin-top: 3px; font-size: 10px; line-height: 1.5; color: #7d8d9b; overflow-wrap: anywhere; }
.cart-notice-meta:empty { display: none; }
.cart-notice-close { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8a9aaa; cursor: pointer; }
.cart-notice-close:hover { background: #edf2f6; color: #193f61; }
.cart-notice-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 13px 8px; border-top: 1px solid #f3e8de; background: linear-gradient(100deg, #fffbf6, #fffdfb); }
.cart-notice-continue { min-height: 32px; padding: 5px 2px; border: 0; background: transparent; color: #61788d; font-size: 10px; font-weight: 500; cursor: pointer; }
.cart-notice-continue:hover { color: #193f61; }
.cart-notice-cart-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 32px; padding: 6px 11px; border-radius: 7px; background: #193f61; color: #fff; font-size: 11px; line-height: 1.5; font-weight: 600; transition: background .15s; }
.cart-notice-cart-link svg { color: #ffbb81; }
.cart-notice-cart-link:hover { background: #102f4b; color: #fff; text-decoration: none; }
.cart-notice :is(button,a):focus-visible { outline: 2px solid #df7c2d; outline-offset: 2px; }
.cart-notice-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: #f2994a; transform-origin: left; animation: cart-notice-countdown 4s linear forwards; }
.cart-notice.is-error { border-color: #eed5ce; }
.cart-notice.is-error .cart-notice-visual { flex-basis: 42px; height: 42px; }
.cart-notice.is-error .cart-notice-product-image, .cart-notice.is-error .cart-notice-check { display: none; }
.cart-notice.is-error .cart-notice-icon { position: static; width: 42px; height: 42px; border: 0; border-radius: 12px; background: #fff0eb; color: #b65339; }
.cart-notice.is-error .cart-notice-warning { display: block; }
.cart-notice.is-error .cart-notice-progress { background: #cb795f; }
@keyframes cart-notice-enter { from { opacity: 0; transform: translateX(18px) scale(.98); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes cart-notice-countdown { to { transform: scaleX(0); } }
@media(max-width:550px) {
    .cart-notice { top: max(12px, env(safe-area-inset-top)); right: 12px; left: auto; width: 340px; max-width: calc(100% - 24px); }
}
@media(prefers-reduced-motion:reduce) { .cart-notice, .cart-notice-progress { animation: none; } }
.cart-notice [hidden] { display: none !important; }
