/* WooCommerce notices — Brandprint design system */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
.woocommerce-notice {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px !important;
    margin: 0 0 16px !important;
    background: #bfe7f8 !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 14px !important;
    line-height: 22px !important;
    color: #0e1318 !important;
    list-style: none !important;
    position: relative;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-notice::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #009fe3 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>") no-repeat center / 22px 22px;
    color: transparent;
    margin: 0;
    position: static;
    font-family: inherit;
    font-weight: normal;
    line-height: 0;
    text-align: left;
}
.woocommerce-message::before {
    background: #1bb88a url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 16px 16px;
}
.woocommerce-error::before {
    background: #e02b2b url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='6' y1='6' x2='18' y2='18'/><line x1='6' y1='18' x2='18' y2='6'/></svg>") no-repeat center / 14px 14px;
}

.woocommerce-message {
    background: #e7f8ef !important;
    color: #0e1318 !important;
}
.woocommerce-error {
    background: #fde7eb !important;
    color: #0e1318 !important;
}

.woocommerce-message strong,
.woocommerce-info strong,
.woocommerce-error strong { font-weight: 600; }

/* Inline buttons inside notices ("View cart" / "Zobacz koszyk") */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-message .wc-forward,
.woocommerce-info .wc-forward {
    order: 2;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    background: #e82693 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 40px !important;
    text-decoration: none !important;
    text-transform: none !important;
    box-shadow: none !important;
    transition: background .15s ease;
    white-space: nowrap;
}
.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-message .wc-forward:hover,
.woocommerce-info .wc-forward:hover {
    background: #c91f7d !important;
    color: #fff !important;
}

/* Error list (messages container) */
ul.woocommerce-error {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-left: 52px !important;
}
ul.woocommerce-error::before {
    position: absolute;
    left: 18px;
    top: 14px;
}

/* Container around notices in WC default templates */
.woocommerce-notices-wrapper { margin: 16px 0; }
.woocommerce-notices-wrapper:empty { margin: 0; }

/* Hide empty notice shells (e.g. when coupon/login messages are filtered out) */
.woocommerce-info:empty,
.woocommerce-message:empty,
.woocommerce-error:empty { display: none !important; }
