.cart-feedback {
    position: fixed;
    top: 104px;
    right: 24px;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    width: min(390px, calc(100vw - 32px));
    padding: 20px;
    background: #fffdf9;
    color: #3b2417;
    border: 1px solid #ded1bd;
    border-radius: 14px;
    box-shadow: 0 12px 40px #3b241724;
    font: 14px/1.5 Arial, sans-serif;
    animation: cart-feedback-enter .2s ease-out;
}

.cart-feedback[hidden],
.cart-feedback [hidden] {
    display: none;
}

.cart-feedback-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: #f1e7d8;
    border-radius: 50%;
    color: #785a2d;
    font-size: 19px;
}

.cart-feedback-body {
    flex: 1;
    min-width: 0;
}

.cart-feedback-body strong {
    display: block;
    font: 600 14px/1.5 Arial, sans-serif;
}

.cart-feedback-body p {
    margin: 4px 0 10px;
    color: #665e54;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.cart-feedback-body a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #785a2d;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cart-feedback-body a:hover {
    color: #3b2417;
}

.cart-feedback-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin: -5px -7px 0 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #665e54;
    font: 22px/1 Arial, sans-serif;
    cursor: pointer;
}

.cart-feedback-close:hover {
    background: #f1e7d8;
    color: #3b2417;
}

.cart-feedback :is(a, button):focus-visible {
    outline: 2px solid #b58a4a;
    outline-offset: 4px;
}

.cart-feedback.is-error {
    border-color: #d6aca4;
}

.cart-feedback.is-error .cart-feedback-icon {
    background: #faede9;
    color: #923d2e;
}

button:is(.product-add-cart-btn, .product-cart-btn, .detail-add-cart-btn).cart-feedback-added {
    background: #edf3ed;
    color: #2e5e3f;
    border-color: #adc7b3;
    box-shadow: none;
}

button.cart-feedback-added::before,
button.cart-feedback-added::after {
    display: none;
}

button.cart-feedback-added>span {
    color: inherit;
    font-size: inherit;
}

@keyframes cart-feedback-enter {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .cart-feedback {
        top: 88px;
        right: 16px;
        padding: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-feedback {
        animation: none;
    }
}