/* smart-web.hu – privacy dialog (JS: showModal; no JS: #target) + cookie banner (assets/js/consent.js) */
dialog.doc {
    width: min(46rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid #ddd; border-radius: 12px; background: #fff; color: #333; line-height: 1.6; font-size: 15px;
}
dialog.doc::backdrop { background: rgb(0 0 0 / .5); }
dialog.doc:target:not([open]) { display: block; position: fixed; inset: 1rem; margin: auto; overflow: auto; z-index: 2000; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .5); }
dialog.doc h2 { margin: .5rem 0 1rem; font-size: 1.6rem; font-weight: 700; }
dialog.doc h3 { margin: 1.5rem 0 .4rem; font-size: 1.1rem; font-weight: 700; }
dialog.doc p, dialog.doc ul { margin: 0 0 .75rem; }
dialog.doc p, dialog.doc li, dialog.doc b { color: #222; font-size: 15px; font-weight: 400; line-height: 1.6; }
dialog.doc b { font-weight: 700; }
dialog.doc dl { margin: 0; color: #222; font-size: 15px; line-height: 1.6; }
dialog.doc dt { margin-top: .9rem; font-weight: 700; }
dialog.doc dd { margin: 0; color: #222; font-weight: 400; }
dialog.doc a, dialog.doc a:hover { color: #a3221b; text-decoration: underline; }
dialog.doc .x { position: absolute; top: .75rem; right: .75rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: transparent; color: #333; font-size: 1.6rem; line-height: 1; cursor: pointer; }
dialog.doc .x:hover { background: #eee; }
dialog.doc:focus { outline: none; }

.consent { position: fixed; z-index: 1500; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; padding: 18px 20px; background: #fff; color: #222; border: 1px solid #ddd; border-radius: 12px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .35); font-size: 15px; line-height: 1.5; }
.consent[hidden], [data-consent-open][hidden] { display: none !important; }
.consent p { margin: 0 0 14px; color: #222; font-size: 15px; }
.consent a { color: inherit; text-decoration: underline; }
.consent-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent button { font: inherit; font-weight: 700; min-height: 44px; padding: 10px 22px; border: 2px solid #222; border-radius: 999px; background: #222; color: #fff; cursor: pointer; }
.consent button:hover { opacity: .88; }
.consent button:focus-visible, .consent a:focus-visible, dialog.doc a:focus-visible, dialog.doc .x:focus-visible { outline: 3px solid #1f6feb; outline-offset: 2px; }
@media print { .consent { display: none; } }
