#cart-added-modal[hidden] {
    display: none !important;
}

#cart-added-modal:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 2147482500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.cart-added-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cart-added-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: #fff;
    color: #1a1a1a;
    padding: 2.25rem 2rem 2rem;
    text-align: center;
    font-family: 'Nunito Sans', sans-serif;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.cart-added-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #F77F77;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cart-added-modal__close:hover {
    background: #e56860;
}

.cart-added-modal__icon {
    color: #2d6a4f;
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.cart-added-modal__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #1a1a1a;
}

.cart-added-modal__message {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 1.75rem;
    color: #444;
}

.cart-added-modal__message strong {
    color: #1a1a1a;
}

.cart-added-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-added-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cart-added-modal__btn--primary {
    background: #2C2C2C;
    border: 1px solid #2C2C2C;
    color: #fff;
}

.cart-added-modal__btn--primary:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.cart-added-modal__btn--secondary {
    background: #fff;
    border: 1px solid #2C2C2C;
    color: #2C2C2C;
}

.cart-added-modal__btn--secondary:hover {
    background: #f5f5f5;
    color: #000;
}

@media (max-width: 575.98px) {
    .cart-added-modal__dialog {
        padding: 2rem 1.25rem 1.5rem;
    }
}
