/* Unified WooCommerce notices. Loaded after every page-specific stylesheet. */
.woocommerce-notices-wrapper:empty,
.woocommerce-NoticeGroup:empty {
    display: none !important;
}

.woocommerce-notices-wrapper,
.woocommerce-NoticeGroup {
    width: 100%;
    margin: 0 0 18px !important;
}

/* WooCommerce 10 renders coupon validation beside the field instead of using
   the standard notice templates. Keep it compact and within the same palette. */
body .coupon-error-notice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    width: 100%;
    margin: 8px 0 0 !important;
    padding: 9px 11px !important;
    border: 1px solid rgba(245, 196, 82, .4) !important;
    border-radius: 10px !important;
    background: rgba(245, 196, 82, .11) !important;
    color: var(--primary, #312e81) !important;
    font-size: 10px !important;
    font-weight: 700;
    line-height: 1.8;
}

body .coupon-error-notice::before {
    flex: 0 0 auto;
    color: var(--primary, #312e81);
    content: "\f06a";
    font: 900 11px/1.8 "Font Awesome 7 Free";
}

body .woocommerce .hg-woo-notice,
body .hg-woo-notice,
body.woocommerce-cart .hg-woo-notice,
body.woocommerce-checkout .hg-woo-notice,
body.woocommerce-account .hg-woo-notice,
.hg-track-page .hg-woo-notice,
.hg-shop-section .hg-woo-notice {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 32px !important;
    align-items: center !important;
    gap: 13px !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 72px !important;
    margin: 0 0 12px !important;
    padding: 13px 14px !important;
    overflow: hidden !important;
    border: 1px solid var(--line, #e6e9f0) !important;
    border-top: 1px solid var(--line, #e6e9f0) !important;
    border-radius: 16px !important;
    background: var(--paper, #fff) !important;
    color: var(--ink, #17203b) !important;
    box-shadow: 0 10px 30px rgba(23, 32, 59, .07) !important;
    font-size: 12px !important;
    line-height: 1.85 !important;
    list-style: none !important;
    animation: hgNoticeIn .28s ease both;
}

body .hg-woo-notice::before,
body .hg-woo-notice::after {
    display: none !important;
    content: none !important;
}

.hg-woo-notice__icon {
    display: grid;
    place-items: center;
    align-self: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 14px;
}

.hg-woo-notice__body {
    min-width: 0;
}

.hg-woo-notice__body > strong {
    display: block;
    margin-bottom: 1px;
    color: var(--ink, #17203b);
    font-size: 11px;
    font-weight: 800;
}

.hg-woo-notice__body > div,
.hg-woo-notice__body li {
    color: var(--ink-2, #4c5875);
    font-size: 11px;
    font-weight: 550;
    line-height: 1.9;
}

.hg-woo-notice__body ul {
    display: grid;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.hg-woo-notice__body li + li {
    margin: 0 !important;
    padding-top: 4px !important;
    border-top: 1px dashed var(--line, #e6e9f0) !important;
}

.hg-woo-notice__close {
    display: grid;
    place-items: center;
    align-self: center;
    width: 32px;
    height: 32px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: rgba(23, 32, 59, .045) !important;
    color: var(--muted, #778098) !important;
    box-shadow: none !important;
    font-size: 12px;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.hg-woo-notice__close:hover,
.hg-woo-notice__close:focus-visible {
    background: rgba(49, 46, 129, .09) !important;
    color: var(--primary, #312e81) !important;
    transform: rotate(5deg);
}

body .woocommerce .hg-woo-notice.hg-woo-notice--success,
body .hg-woo-notice.hg-woo-notice--success {
    border-color: rgba(22, 152, 115, .2) !important;
    background: linear-gradient(90deg, #fff, rgba(22, 152, 115, .055)) !important;
}

.hg-woo-notice--success .hg-woo-notice__icon {
    background: rgba(22, 152, 115, .11);
    color: var(--success, #169873);
}

body .woocommerce .hg-woo-notice.hg-woo-notice--info,
body .hg-woo-notice.hg-woo-notice--info {
    border-color: rgba(20, 169, 213, .2) !important;
    background: linear-gradient(90deg, #fff, rgba(20, 169, 213, .055)) !important;
}

.hg-woo-notice--info .hg-woo-notice__icon {
    background: rgba(20, 169, 213, .11);
    color: var(--sky, #14a9d5);
}

body .woocommerce .hg-woo-notice.hg-woo-notice--error,
body .hg-woo-notice.hg-woo-notice--error {
    border-color: rgba(245, 196, 82, .4) !important;
    background: linear-gradient(90deg, #fff, rgba(245, 196, 82, .1)) !important;
}

.hg-woo-notice--error .hg-woo-notice__icon {
    background: rgba(245, 196, 82, .2);
    color: var(--primary, #312e81);
}

.hg-woo-notice a:not(.button) {
    color: var(--primary, #312e81) !important;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(49, 46, 129, .28);
    text-underline-offset: 3px;
}

body .woocommerce .hg-woo-notice a.button,
body .hg-woo-notice a.button {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    margin: 3px 7px 3px 0 !important;
    padding: 6px 12px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: var(--primary, #312e81) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    transform: none !important;
}

body .hg-woo-notice a.button:hover,
body .hg-woo-notice a.button:focus-visible {
    background: var(--primary-2, #4541ad) !important;
    color: #fff !important;
}

.hg-woo-notice.is-leaving {
    pointer-events: none;
    animation: hgNoticeOut .22s ease both !important;
}

/* Fallback styling for notices produced by WooCommerce blocks or gateways. */
body .wc-block-components-notice-banner,
body .woocommerce-notice:not(.hg-woo-notice) {
    margin: 0 0 14px !important;
    padding: 13px 15px !important;
    border: 1px solid rgba(20, 169, 213, .2) !important;
    border-radius: 14px !important;
    background: linear-gradient(90deg, #fff, rgba(20, 169, 213, .055)) !important;
    color: var(--ink-2, #4c5875) !important;
    box-shadow: 0 9px 26px rgba(23, 32, 59, .06) !important;
    font-size: 11px !important;
    line-height: 1.9 !important;
}

body .wc-block-components-notice-banner.is-success,
body .woocommerce-notice--success:not(.hg-woo-notice) {
    border-color: rgba(22, 152, 115, .2) !important;
    background: linear-gradient(90deg, #fff, rgba(22, 152, 115, .055)) !important;
}

body .wc-block-components-notice-banner.is-error,
body .woocommerce-notice--error:not(.hg-woo-notice) {
    border-color: rgba(245, 196, 82, .4) !important;
    background: linear-gradient(90deg, #fff, rgba(245, 196, 82, .1)) !important;
    color: var(--primary, #312e81) !important;
}

body .wc-block-components-notice-banner > svg {
    fill: currentColor !important;
}

body .wc-block-components-notice-banner__content {
    color: inherit !important;
    font-size: inherit !important;
}

body .wc-block-components-notice-banner__dismiss {
    border-radius: 9px !important;
    color: var(--primary, #312e81) !important;
}

body .woocommerce-store-notice {
    inset: auto 18px 18px 18px !important;
    z-index: 10030 !important;
    width: min(680px, calc(100% - 36px)) !important;
    margin: 0 auto !important;
    padding: 12px 16px !important;
    border: 1px solid rgba(20, 169, 213, .22) !important;
    border-radius: 13px !important;
    background: var(--ink, #17203b) !important;
    color: #fff !important;
    box-shadow: 0 14px 38px rgba(23, 32, 59, .22) !important;
    font-size: 11px !important;
    text-align: center;
}

body .woocommerce-store-notice__dismiss-link {
    margin-inline-start: 8px;
    color: var(--gold, #f5c452) !important;
    font-weight: 800;
}

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

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

@media (max-width: 620px) {
    .woocommerce-notices-wrapper,
    .woocommerce-NoticeGroup {
        margin-bottom: 12px !important;
    }

    body .woocommerce .hg-woo-notice,
    body .hg-woo-notice {
        grid-template-columns: 38px minmax(0, 1fr) 30px !important;
        gap: 10px !important;
        min-height: 66px !important;
        padding: 11px !important;
        border-radius: 14px !important;
    }

    .hg-woo-notice__icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .hg-woo-notice__body > div,
    .hg-woo-notice__body li {
        font-size: 10px;
    }

    .hg-woo-notice__close {
        width: 30px;
        height: 30px;
    }

    body .woocommerce .hg-woo-notice a.button,
    body .hg-woo-notice a.button {
        display: flex !important;
        width: 100% !important;
        margin: 7px 0 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hg-woo-notice,
    .hg-woo-notice * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
