/**
 * In-page Woo notice chip. White, raised, hugs content.
 * Row: copy | action | close.
 */

.lv-notice-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lv-notice-list,
ul.woocommerce-error,
ul.woocommerce-error.lv-notice-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: auto;
    max-width: 100%;
    margin: 0 0 16px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    list-style: none;
}

.woocommerce-error:empty,
.woocommerce-info:empty,
.woocommerce-message:empty,
.woocommerce-notice:empty {
    display: none;
}

.lv-toast,
.lv-notice,
.lv-notice-list > li,
ul.woocommerce-error > li,
.lv-notice-preview .woocommerce-message,
.lv-notice-preview .woocommerce-info,
.lv-notice-preview div.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper div.woocommerce-error {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 16px;
    padding: 4px 10px;
    font-size: 0.875rem;
    line-height: 1.5;
    background: var(--lv-bg, #ffffff);
    color: var(--lv-text, #1a1a1a);
    border: 1px solid var(--lv-border, #e5e5e5);
    border-radius: 4px;
    min-height: 0;
    background-image: none;
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.lv-notice__text {
    display: block;
    flex: 0 0 auto;
    min-width: min-content;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    overflow: visible;
    color: inherit;
    white-space: nowrap;
}

.lv-notice a:not(.button),
.lv-notice__text a:not(.button),
.woocommerce-error a:not(.button) {
    display: inline;
    width: auto;
    min-width: min-content;
    flex: 0 1 auto;
    color: inherit;
    background: none;
    padding: 0;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: none;
    overflow: visible;
}

.lv-notice__text > p,
.lv-notice__text > li {
    margin: 0;
}

.lv-notice__actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lv-toast .button,
.lv-notice__actions .button,
.lv-notice .button,
.lv-notice-preview .woocommerce-message a.button,
.lv-notice-preview .woocommerce-info a.button,
.lv-notice-preview .woocommerce-error a.button,
.woocommerce-notices-wrapper .woocommerce-message a.button,
.woocommerce-notices-wrapper .woocommerce-info a.button,
.woocommerce-notices-wrapper .woocommerce-error a.button {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 14px;
    line-height: 1;
    background: var(--lv-text, #1a1a1a);
    color: var(--lv-bg, #ffffff);
    border: 1px solid var(--lv-text, #1a1a1a);
    border-radius: 4px;
    box-shadow: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    text-decoration: none;
}

.lv-toast .button:hover,
.lv-notice__actions .button:hover,
.lv-notice .button:hover,
.lv-notice-preview .woocommerce-message a.button:hover,
.lv-notice-preview .woocommerce-info a.button:hover,
.lv-notice-preview .woocommerce-error a.button:hover,
.woocommerce-notices-wrapper .woocommerce-message a.button:hover,
.woocommerce-notices-wrapper .woocommerce-info a.button:hover,
.woocommerce-notices-wrapper .woocommerce-error a.button:hover {
    background: var(--lv-text, #1a1a1a);
    color: var(--lv-bg, #ffffff);
}

.lv-notice__actions .button::before,
.lv-notice__actions .button::after,
.lv-notice .button::before,
.lv-notice .button::after {
    content: none;
    display: none;
}

.lv-notice__close {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--lv-text, #1a1a1a);
    cursor: pointer;
    line-height: 1;
}

.lv-notice__close svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

.lv-notice__close:hover {
    color: var(--lv-text-light, #666666);
}
