/* Deliberately self-contained: Hello/Elementor button states must not recolour this note. */
body #lm-site-notice {
    position: fixed;
    z-index: 900;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    width: min(390px, calc(100vw - 48px));
    max-height: min(40vh, 320px);
    margin: 0;
    border: 1px solid #d6ddcf;
    border-top: 2px solid #b39050;
    border-radius: 3px;
    padding: 22px 54px 22px 24px;
    overflow: auto;
    background: #fcfaf5;
    color: #173e2c;
    box-shadow: 0 12px 42px rgba(10, 35, 24, .12);
    text-align: left;
    isolation: isolate;
    animation: lm-site-note-in 220ms ease-out both;
}

body #lm-site-notice[hidden] { display: none !important; }

body #lm-site-notice .lm-site-notice__message {
    display: block;
    margin: 0;
    padding: 0;
    color: #173e2c;
    font: 400 14px/1.6 "LM Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    text-transform: none;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

body #lm-site-notice button.lm-site-notice__close,
body #lm-site-notice button.lm-site-notice__close:is(:hover, :focus, :active, :focus-visible) {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 0;
    background: transparent;
    color: #173e2c;
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}

body #lm-site-notice button.lm-site-notice__close:is(:hover, :active) {
    border-color: #d6ddcf;
    background: #eef0e7;
    color: #173e2c;
}

body #lm-site-notice button.lm-site-notice__close:focus-visible {
    outline: 2px solid #6b806a;
    outline-offset: -3px;
    background: #eef0e7;
}

body #lm-site-notice .lm-site-notice__close svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

body.lm-menu-open #lm-site-notice { visibility: hidden; pointer-events: none; }

@keyframes lm-site-note-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    body #lm-site-notice {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        width: calc(100vw - max(14px, env(safe-area-inset-right)) - max(14px, env(safe-area-inset-left)));
        max-width: 390px;
        padding: 18px 50px 18px 20px;
    }
    body #lm-site-notice .lm-site-notice__message { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    body #lm-site-notice { animation: none; }
    body #lm-site-notice button.lm-site-notice__close { transition: none; }
}

@media print {
    body #lm-site-notice { display: none !important; }
}
