body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error {
    box-sizing: border-box;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    border: 1px solid #000;
    border-left-width: 3px;
    border-radius: 0;
    background: rgba(255,255,255,.97);
    color: #000;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
    overflow-wrap: anywhere;
    list-style: none outside;
}
body .woocommerce-message::before,
body .woocommerce-info::before,
body .woocommerce-error::before { display: none; content: none; }
body .woocommerce-message a,
body .woocommerce-info a,
body .woocommerce-error a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
body .woocommerce-message a.button,
body .woocommerce-message a.restore-item,
body .woocommerce-info a.button,
body .woocommerce-error a.button {
    display: table !important;
    float: right !important;
    margin: 0 0 8px 16px !important;
    padding: .618em 1em;
    box-sizing: border-box;
    border: 0;
    border-radius: 3px;
    background: #f00;
    color: #fff;
    box-shadow: none;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}
body .woocommerce-message a.button:hover,
body .woocommerce-message a.restore-item:hover,
body .woocommerce-info a.button:hover,
body .woocommerce-error a.button:hover { background: #000; color: #fff; }
body .woocommerce-message a:focus-visible,
body .woocommerce-info a:focus-visible,
body .woocommerce-error a:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
body .woocommerce-error li { margin: 0; padding: 0; }
/* Keep WooCommerce's native input/error association and cleanup behavior,
   while presenting its coupon error through the common notice wrapper. */
body .coupon-error-notice.ah-coupon-error-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0 !important;
}
body .woocommerce-message.ah-notice-row { display: flex; align-items: center; gap: 18px; }
body .woocommerce-message.ah-notice-row::after { content: none; display: none; }
body .ah-notice-text { flex: 1; min-width: 0; }
body .ah-notice-text > :last-child { margin-bottom: 0; }
body .ah-notice-actions { flex: 0 0 auto; max-width: 45%; }
body .ah-notice-actions a.button,body .ah-notice-actions a.restore-item {
    float: none !important;
    margin: 0 !important;
    max-width: 100%;
}
@media (max-width: 1024px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
    body .woocommerce-message,body .woocommerce-info,body .woocommerce-error {
        padding: 14px 16px;
        font-size: 12px;
        margin-bottom: 20px;
    }
    body .ah-product-feedback,
    body .woocommerce-notices-wrapper:has(> .woocommerce-message, > .woocommerce-info, > .woocommerce-error),
    body .woocommerce > .woocommerce-message,
    body .woocommerce > .woocommerce-info,
    body .woocommerce > .woocommerce-error {
        position: fixed;
        z-index: 2147483000;
        top: var(--ah-notice-top, calc(env(safe-area-inset-top, 0px) + 70px));
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - var(--ah-notice-top, 70px) - 10px);
        overflow: auto;
        margin: 0 !important;
    }
    body .ah-product-feedback:empty { display: none; }
    body .ah-product-feedback > .woocommerce-error,
    body .woocommerce-notices-wrapper > .woocommerce-message,
    body .woocommerce-notices-wrapper > .woocommerce-info,
    body .woocommerce-notices-wrapper > .woocommerce-error {
        margin-bottom: 0;
    }
    body .woocommerce-message,body .woocommerce-info,body .woocommerce-error {
        position: relative;
        animation: ah-notice-dropdown 160ms ease-out both;
    }
    body .woocommerce-message.ah-notice-leaving,
    body .woocommerce-info.ah-notice-leaving,
    body .woocommerce-error.ah-notice-leaving {
        animation: ah-notice-dropup 160ms ease-in both;
    }
}
@keyframes ah-notice-dropdown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    body .woocommerce-message,body .woocommerce-info,body .woocommerce-error { animation: none; }
}

@keyframes ah-notice-dropup { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-100%); } }
