.lgew-notice { margin: 1.5rem 0 2rem; clear: both; }
.lgew-notice h2 { font-size: 1.25rem; margin: 0 0 1rem; }
.lgew-notice--compact { margin: 0 0 1rem; padding: 0; text-align: center; }
.lgew-notice__trigger { width: min(100%, 34rem); min-height: 2.75rem; line-height: 1.35; white-space: normal; }
.lgew-notice__trigger[hidden] { display: none !important; }
.lgew-notice__eu { display: block; max-width: 640px; }
.lgew-notice__pdf { display: inline-block; margin-top: .75rem; text-decoration: underline; }
.lgew-notice__trigger:focus-visible, .lgew-notice__eu:focus-visible, .lgew-notice__pdf:focus-visible, .lgew-dialog__close:focus-visible { outline: 3px solid #164f86; outline-offset: 3px; }

.lgew-dialog { box-sizing: border-box; width: min(800px, calc(100% - 2rem)); max-width: calc(100% - 2rem); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); padding: 0; margin: auto; border: 0; border-radius: .25rem; color: inherit; background: #fff; overflow: hidden; }
.lgew-dialog[open] { display: flex; flex-direction: column; }
.lgew-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.lgew-dialog__header { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid #e5e5e5; flex: 0 0 auto; }
.lgew-dialog__header h2 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 1.25rem; line-height: 1.3; overflow-wrap: anywhere; }
.lgew-dialog__close { flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; color: #444; background: #ededed; font: 28px/1 sans-serif; cursor: pointer; }
.lgew-dialog__body { min-height: 0; padding: 1.25rem; overflow: auto; overscroll-behavior: contain; }
.lgew-dialog .lgew-notice__content { max-width: 640px; margin: 0 auto; }
.lgew-dialog .lgew-notice__content h2 { display: none; }
/* Livella sets body overflow with !important; override only while this dialog is open. */
body.lgew-dialog-open { overflow: hidden !important; }
@media (max-width: 575.98px) {
    .lgew-dialog { width: calc(100% - 1rem); max-width: calc(100% - 1rem); max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); }
    .lgew-dialog__header, .lgew-dialog__body { padding: .75rem; }
    .lgew-dialog__header { gap: .5rem; }
    .lgew-dialog__header h2 { font-size: 1.125rem; }
}

.lgew-guarantee { margin: 1rem 0; max-width: 100%; clear: both; }
.lgew-guarantee summary { cursor: pointer; white-space: normal; }
.lgew-guarantee summary img { vertical-align: middle; }
.lgew-guarantee > a { display: block; margin-top: .5rem; }
.lgew-guarantee summary:focus-visible, .lgew-guarantee a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
