/* Explicit positioning prevents theme resets from removing native dialog centering. */
#gmq-message-dialog.gm-modal,#gm-cookie-settings.gm-modal{position:fixed;inset:0;margin:auto;width:min(650px,calc(100% - 32px));max-width:calc(100% - 32px);height:fit-content;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);box-sizing:border-box;padding:0;border:1px solid #a5b2c3;border-radius:12px;background:#fff;color:#233147;box-shadow:0 18px 64px #0004;overflow:hidden;transform:none;font:15px/1.6 system-ui,sans-serif}
#gmq-message-dialog.gm-modal[open],#gm-cookie-settings.gm-modal[open]{display:flex;flex-direction:column}
.gm-modal::backdrop{background:rgba(15,23,42,.62)}
.gm-modal .gm-modal-form{display:flex;flex-direction:column;min-height:0;margin:0;max-width:100%;flex:1}
.gm-modal .gm-modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid #dce3ed;background:#f8fafc;flex:0 0 auto}
#gmq-message-dialog .gm-modal-header h2,#gm-cookie-settings .gm-modal-header h2{font:700 24px/1.3 system-ui,sans-serif;color:#18263b;margin:0;overflow-wrap:anywhere}
.gm-modal .gm-modal-header .gm-modal-dismiss{width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:1px solid #94a3b8;border-radius:6px;background:#fff;color:#233147;font:24px/1 system-ui,sans-serif;cursor:pointer;flex-shrink:0}
.gm-modal .gm-modal-body{padding:22px 24px;overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto}
.gm-modal .gm-modal-body>p:first-child{margin-top:0}
.gm-modal .gm-modal-body>p:last-child:empty{display:none}
#gmq-message-dialog.gm-modal textarea{box-sizing:border-box;width:100%;min-height:140px;max-height:32dvh;resize:vertical;margin:10px 0 18px;padding:12px;font:14px/1.6 system-ui,sans-serif}
.gm-modal button:focus-visible,.gm-modal a:focus-visible,.gm-modal input:focus-visible,.gm-modal textarea:focus-visible{outline:3px solid #a95d00;outline-offset:3px}
html.gm-modal-open,body.gm-modal-open{overflow:hidden!important;overscroll-behavior:none}
body.gm-modal-open .mobile-bottom-nav,body.gm-modal-open .mobile-bottom-bar,body.gm-modal-open #gmq-toast{visibility:hidden}
@media(max-width:600px){#gmq-message-dialog.gm-modal,#gm-cookie-settings.gm-modal{width:calc(100% - 24px);max-width:calc(100% - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}.gm-modal .gm-modal-header{padding:14px 16px;gap:12px}#gmq-message-dialog .gm-modal-header h2,#gm-cookie-settings .gm-modal-header h2{font-size:21px}.gm-modal .gm-modal-body{padding:18px 16px}#gmq-message-dialog.gm-modal textarea{font-size:16px;min-height:120px}.gm-modal .gmq-actions{gap:8px}}
