#mdfc-banner,#mdfc-settings,#mdfc-reopen {font:14px/1.5 Arial,sans-serif;color:#2e352c;box-sizing:border-box;}
#mdfc-banner[hidden] {display:none!important;}
#mdfc-banner {position:fixed;z-index:10000;bottom:20px;left:24px;right:24px;max-width:1240px;margin:auto;padding:22px 26px;background:#fffdf8;border:1px solid #deded2;border-radius:10px;box-shadow:0 8px 40px #18201626;display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center;}
#mdfc-banner strong {font-size:17px;}#mdfc-banner p {margin:6px 0 10px;max-width:650px;}
.mdfc-links {display:flex;gap:18px;flex-wrap:wrap;}.mdfc-links a {color:#576047;text-decoration:underline;font-size:12px;}
.mdfc-actions {display:flex;gap:10px;flex-wrap:wrap;}
.mdfc-actions button,#mdfc-reopen {padding:12px 16px;min-height:44px;border:1px solid #8b947e;border-radius:5px;background:#fffdf8;cursor:pointer;color:#34452c;font:inherit;}
.mdfc-actions button:hover {background:#edf1e5;}
#mdfc-settings {border:1px solid #d5dbcf;border-radius:12px;padding:28px;max-width:560px;width:calc(100% - 48px);max-height:85dvh;overflow:auto;}
#mdfc-settings::backdrop {background:#141b18a6;}#mdfc-settings h2 {font-size:23px;margin:0 0 10px;}
#mdfc-settings label {display:flex;gap:20px;align-items:center;justify-content:space-between;border-top:1px solid #e4e8df;padding:18px 0;cursor:pointer;}
#mdfc-settings label p {font-size:13px;color:#64705d;margin:5px 0 0;}#mdfc-settings input {width:22px;height:22px;accent-color:#516642;flex-shrink:0;}
#mdfc-preferences {width:90%;max-width:1400px;box-sizing:border-box;margin:24px auto 36px;padding:18px 0;border-top:1px solid var(--border-color,#dde3de);display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;}
#mdfc-preferences p {margin:0;color:var(--muted,#657169);font:13px/1.6 'Segoe UI',Arial,sans-serif;}
#mdfc-reopen {position:static;z-index:auto;font:600 13px/1.4 'Segoe UI',Arial,sans-serif;padding:10px 14px;min-height:40px;border:1px solid var(--line,var(--border-color,#ccd7ce));border-radius:8px;background:var(--surface,var(--card-bg,#f7faf8));color:var(--ink,var(--text-color,#354e3d));white-space:nowrap;}
#mdfc-reopen:hover {background:var(--paper,var(--selection-bg,#e9f0eb));}
#mdfc-reopen:focus-visible,[data-cookies-open]:focus-visible {outline:3px solid #829b89;outline-offset:3px;}
.mdfc-preferences-footer {display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;}
.mdfc-preferences-footer>span {font-size:12px;line-height:1.5;opacity:.75;}
.mdfc-preferences-footer [data-cookies-open] {min-height:40px;padding:8px 12px;border:1px solid currentColor;border-radius:8px;cursor:pointer;font:600 12px/1.5 'Segoe UI',Arial,sans-serif;white-space:nowrap;}
@media(max-width:600px){#mdfc-preferences {width:calc(100% - 40px);margin:18px auto 28px;gap:10px;padding:16px 0;}.mdfc-preferences-footer {align-items:flex-start;flex-direction:column;}}
.mdf-privacy-check {display:flex!important;align-items:flex-start!important;flex-direction:row!important;gap:10px!important;grid-column:1/-1;font-size:13px;line-height:1.5;}
.mdf-privacy-check input {width:18px!important;height:18px!important;min-height:18px!important;flex-shrink:0;accent-color:#516642;margin:2px 0 0!important;}
.mdf-privacy-check a {color:#445a36;text-decoration:underline;}
@media(max-width:900px){#mdfc-banner {grid-template-columns:1fr;gap:16px;}.mdfc-actions button {flex:1;}}
@media(max-width:600px){#mdfc-banner {left:10px;right:10px;bottom:10px;padding:18px;max-height:75dvh;overflow:auto;}.mdfc-actions {gap:8px;}.mdfc-actions button {padding:10px 9px;font-size:12px;}}
@media print {#mdfc-banner,#mdfc-settings,#mdfc-preferences,#mdfc-reopen,.mdfc-preferences-footer {display:none!important;}}

/* Persistent preferences stay with the page content, without a separate tall footer. */
#mdfc-preferences{margin:12px auto 16px;padding:10px 0;gap:8px 14px}#mdfc-preferences p{font-size:12px}.account-shell>#mdfc-preferences{width:100%;max-width:none;margin:12px 0 0;padding:10px 0}.app-container>#mdfc-preferences{margin:0 auto;padding:10px 0 14px}.mdfc-preferences-footer{flex-direction:row;align-items:center}@media(max-width:600px){#mdfc-preferences{margin:8px auto 12px;padding:8px 0}.account-shell>#mdfc-preferences{margin:8px 0 0}.app-container>#mdfc-preferences{width:90%;padding:8px 0 12px}}

/* Match the compact legal links; keep the hint on a single line. */
.footer-identity .mdfc-preferences-footer{border-left:0;position:relative;padding-left:10px;gap:6px 10px;font:inherit;line-height:1.5}.footer-identity .mdfc-preferences-footer::before{content:'';position:absolute;left:0;top:2px;display:block;width:1px;height:10px;background:currentColor;opacity:.55}.footer-identity .mdfc-preferences-footer>span{max-width:none;white-space:nowrap;font:inherit;opacity:1;margin-right:0}.footer-identity .mdfc-preferences-footer [data-cookies-open]{font:inherit;min-height:0;padding:0;border:0;border-radius:0;background:none;color:inherit}.footer-identity .mdfc-preferences-footer [data-cookies-open]:hover{text-decoration:underline;text-underline-offset:3px}
/* Only the welcome step has centered preferences. Later steps keep their alignment. */
.app-container:has(>#step0.active)>#mdfc-preferences{justify-content:center;text-align:center}
