/* Site notices: normal document flow, bounded width and persistent errors. */
body .woocommerce-notices-wrapper,
body .woocommerce-NoticeGroup {
    position: relative;
    inset: auto;
    transform: none;
    z-index: auto;
    width: min(54rem, calc(100% - 2rem));
    max-width: 100%;
    min-width: 0;
    margin: 1rem auto 1.5rem;
    padding: 0;
    pointer-events: auto;
    grid-column: 1 / -1;
}
body .woocommerce-notices-wrapper:empty,
body .woocommerce-notices-wrapper:has(> [data-hapomeo-notice-consumed]):not(:has(> :not([data-hapomeo-notice-consumed]))) { display: none; }
body .hapomeo-notice[data-hapomeo-notice-consumed] { display: none !important; }
body .hapomeo-notice,
body .woocommerce .hapomeo-notice {
    --notice-accent: #157565;
    --notice-wash: #f3faf7;
    --notice-border: #cde8de;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    box-sizing: border-box;
    width: min(54rem, calc(100% - 2rem));
    max-width: 100%;
    margin: .8rem auto;
    padding: 1rem 1.15rem;
    border: 1px solid var(--notice-border);
    border-radius: 1.25rem;
    background: var(--notice-wash);
    color: #334155;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .035);
    font: 500 .925rem/1.95 'PeydaWeb', Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
    list-style: none;
    animation: none;
    overflow-wrap: anywhere;
}
body .woocommerce-notices-wrapper .hapomeo-notice,
body .woocommerce-NoticeGroup .hapomeo-notice { width: 100%; }
body .hapomeo-notice::before,
body .hapomeo-notice::after,
body .hapomeo-notice > li::before,
body .hapomeo-notice > li::after { display: none; content: none; }
body .hapomeo-notice--error,
body .woocommerce .hapomeo-notice--error { --notice-accent: #b42338; --notice-wash: #fff7f7; --notice-border: #f2ccd2; flex-direction: column; }
body .hapomeo-notice--info,
body .woocommerce .hapomeo-notice--info { --notice-accent: #a34c0b; --notice-wash: #fff9f2; --notice-border: #f2dcc4; }
body .hapomeo-notice > li { display: flex; align-items: flex-start; gap: .85rem; width: 100%; padding: 0; margin: 0; list-style: none; font: inherit; color: inherit; }
body .hapomeo-notice__icon { display: grid; place-items: center; width: 2rem; height: 2rem; flex: 0 0 2rem; border-radius: .7rem; color: var(--notice-accent); background: #fff; border: 1px solid var(--notice-border); margin-top: .1rem; font-size: .875rem; }
body .hapomeo-notice__content { flex: 1; min-width: 0; }
body .hapomeo-notice__content > p { margin: 0; }
body .hapomeo-notice a { color: var(--notice-accent); text-underline-offset: .22em; font-weight: 750; }
body .hapomeo-notice .button,
body .woocommerce .hapomeo-notice .button { display: inline-flex; justify-content: center; align-items: center; float: none; min-height: 2.75rem; padding: .5rem .9rem; margin: .2rem .65rem .2rem 0; color: var(--notice-accent); background: #fff; border: 1px solid var(--notice-border); border-radius: .8rem; font: 750 .85rem/1.5 'PeydaWeb', Tahoma, Arial, sans-serif; text-decoration: none; box-shadow: none; }
body .hapomeo-notice a:focus-visible { outline: 3px solid #fb923c; outline-offset: 3px; }
@media (max-width: 480px) {
    body .woocommerce-notices-wrapper, body .woocommerce-NoticeGroup { width: calc(100% - 1.5rem); }
    body .hapomeo-notice, body .woocommerce .hapomeo-notice { width: calc(100% - 1.5rem); padding: .9rem; gap: .65rem; font-size: .875rem; border-radius: 1rem; }
    body .woocommerce-notices-wrapper .hapomeo-notice, body .woocommerce-NoticeGroup .hapomeo-notice { width: 100%; }
    body .hapomeo-notice > li { gap: .65rem; }
}
