
.woocommerce-notices-wrapper {
    margin-bottom: 24px;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .wc-block-components-notice-banner {
    position: relative;
    padding: 16px 20px 16px 56px;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 2px 12px rgba(23, 23, 23, 0.08);
    animation: slideInDown 0.4s ease-out;
    border-radius: 50px;
    border: solid 3px;
    margin: 0 auto !important;
    max-width: 1200px !important;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.woocommerce-message {
    background: linear-gradient(135deg, #f0f9f0 0%, #cff1d2 100%);
    color: var(--success, #528A4D);
    border: none !important;
    border-radius: 50px;
    margin: 0 auto !important;
    width: 51vw;
    margin-top: 40px !important;
    font-family: 'Montserrat', sans-serif;
}

.woocommerce-message::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23528A4D'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
}

.woocommerce-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #8eb8f0b7 100%);
    color: #2c3e50;
    border: none !important;
    border-radius: 50px;
    margin: 0 auto !important;
    width: 53vw;
    margin-top: 40px !important;
    font-family: 'Montserrat', sans-serif;
}

.woocommerce-info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233498db'%3E%3Cpath d='M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3C/svg%3E");
}

.woocommerce-error {
    background: linear-gradient(135deg, #fff5f5 0%, rgb(239, 200, 200) 100%);
    color: var(--red-primary, #A92231);
    border: none !important;
    border-radius: 50px;
    margin: 0 auto !important;
    width: 51vw;
    margin-top: 40px !important;
    font-family: 'Montserrat', sans-serif;
}

.woocommerce-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A92231'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

.woocommerce-info.first-order-notice {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    color: var(--dark, #171717);
    border-left: 4px solid var(--warning, #FCD603) !important;
    font-weight: 500;
}

.woocommerce-info.first-order-notice::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FCD603'%3E%3Cpath d='M12 2L9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2z'/%3E%3C/svg%3E");
}

.woocommerce-message strong,
.woocommerce-info strong,
.woocommerce-error strong {
    font-weight: 700;
    color: inherit;
}

.woocommerce-info.first-order-notice strong {
    color: var(--red-primary, #A92231);
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    color: inherit !important;
    text-decoration: underline !important;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.woocommerce-message a:hover,
.woocommerce-info a:hover,
.woocommerce-error a:hover {
    opacity: 0.8;
}

.woocommerce-message .woocommerce-notice-close,
.woocommerce-info .woocommerce-notice-close,
.woocommerce-error .woocommerce-notice-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 24px;
    height: 24px;
}

.woocommerce-message .woocommerce-notice-close:hover,
.woocommerce-info .woocommerce-notice-close:hover,
.woocommerce-error .woocommerce-notice-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        padding: 14px 16px 14px 48px;
        font-size: 14px;
        border-radius: 12px;
    }
    
    .woocommerce-message::before,
    .woocommerce-info::before,
    .woocommerce-error::before {
        left: 16px;
        width: 20px;
        height: 20px;
    }
}

.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-cart .woocommerce-message[role="alert"] {
    display: block !important;
}

/* ── Checkout page notices ─────────────────────── */
#matreshka-checkout-notices {
    margin-bottom: 0;
}
#matreshka-checkout-notices:empty {
    display: none;
}
#matreshka-checkout-notices .woocommerce-NoticeGroup-checkout,
#matreshka-checkout-notices .woocommerce-error,
#matreshka-checkout-notices .woocommerce-message,
#matreshka-checkout-notices .woocommerce-info {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    font-size: 15px;
    padding: 16px 20px 16px 54px;
    box-sizing: border-box;
}
#matreshka-checkout-notices ul.woocommerce-error {
    list-style: none;
    padding-left: 54px;
}
#matreshka-checkout-notices ul.woocommerce-error li {
    list-style: none;
}
/* Hide notices left inside the form (they get moved by JS) */
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup-checkout {
    display: none !important;
}
@media (max-width: 768px) {
    #matreshka-checkout-notices .woocommerce-error,
    #matreshka-checkout-notices .woocommerce-message,
    #matreshka-checkout-notices .woocommerce-info {
        border-radius: 12px !important;
        font-size: 13px;
        padding: 14px 16px 14px 46px;
    }
}
