:root { --gdprc-accent: #1e40af; }
.gdprc {
--gdprc-bg: #ffffff;
--gdprc-fg: #1f2937;
--gdprc-muted: #4b5563;
--gdprc-border: #e5e7eb;
--gdprc-btn-bg: #f3f4f6;
--gdprc-btn-fg: #111827;
position: fixed;
inset: 0;
z-index: 2147483000;
pointer-events: none;
font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
color: var(--gdprc-fg);
}
.gdprc[hidden] { display: none !important; }
.gdprc--dark {
--gdprc-bg: #111827;
--gdprc-fg: #f9fafb;
--gdprc-muted: #d1d5db;
--gdprc-border: #374151;
--gdprc-btn-bg: #1f2937;
--gdprc-btn-fg: #f9fafb;
}
.gdprc *, .gdprc *::before, .gdprc *::after { box-sizing: border-box; }
.gdprc__backdrop {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, .45);
opacity: 0;
transition: opacity .2s;
display: none;
}
.gdprc--center .gdprc__backdrop,
.gdprc--prefs:not(.gdprc--left-half) .gdprc__backdrop { display: block; pointer-events: auto; }
.gdprc--open .gdprc__backdrop { opacity: 1; }
.gdprc__box {
position: absolute;
pointer-events: auto;
background: var(--gdprc-bg);
border: 1px solid var(--gdprc-border);
box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
padding: 20px 24px;
max-height: calc(100vh - 32px);
overflow-y: auto;
opacity: 0;
transform: translateY(12px);
transition: opacity .2s, transform .2s;
outline: none;
}
.gdprc--open .gdprc__box { opacity: 1; transform: none; }  .gdprc--left-half .gdprc__box {
left: 16px; bottom: 16px;
width: min(var(--gdprc-w, 50vw), calc(100vw - 32px));
min-width: min(380px, calc(100vw - 32px));
max-height: min(75vh, 640px);
border-radius: 12px;
padding: 16px 18px;
font-size: 14px;
box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
}
.gdprc--left-half .gdprc__title { font-size: 16px; }
.gdprc--left-half .gdprc__msg { font-size: 13.5px; }
.gdprc--left-half .gdprc__btn { min-width: 0; padding: 8px 14px; font-size: 14px; }
.gdprc--left-half.gdprc--prefs .gdprc__msg,
.gdprc--left-half.gdprc--prefs .gdprc__links { display: none; }
.gdprc--left-half .gdprc__cat { padding: 8px 0; }
.gdprc--left-half .gdprc__cat-desc { font-size: 13px; }
.gdprc--bottom .gdprc__box { left: 0; right: 0; bottom: 0; border-radius: 12px 12px 0 0; }
.gdprc--bottom-left .gdprc__box { left: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); border-radius: 12px; }
.gdprc--center .gdprc__box,
.gdprc--prefs:not(.gdprc--left-half) .gdprc__box {
left: 50%; top: 50%; bottom: auto; right: auto;
width: min(560px, calc(100vw - 32px));
transform: translate(-50%, calc(-50% + 12px));
border-radius: 12px;
}
.gdprc--open.gdprc--center .gdprc__box,
.gdprc--open.gdprc--prefs:not(.gdprc--left-half) .gdprc__box { transform: translate(-50%, -50%); }
.gdprc--bottom .gdprc__main,
.gdprc--bottom .gdprc__actions { max-width: 1100px; margin-left: auto; margin-right: auto; }
.gdprc__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; color: inherit; }
.gdprc__msg { margin: 0 0 8px; color: var(--gdprc-muted); }
.gdprc__links { margin: 0 0 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.gdprc__links a { color: var(--gdprc-accent); text-decoration: underline; }
.gdprc--dark .gdprc__links a { color: #93c5fd; }
.gdprc__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 8px; } .gdprc__btn {
appearance: none;
border: 2px solid var(--gdprc-accent);
background: var(--gdprc-accent);
color: #fff;
font: inherit;
font-weight: 600;
padding: 10px 18px;
border-radius: 8px;
cursor: pointer;
min-width: 140px;
flex: 0 1 auto;
line-height: 1.2;
}
.gdprc__link {
appearance: none; background: none; border: 0; padding: 6px 2px; margin: 0;
font: inherit; font-weight: 600; color: var(--gdprc-accent);
text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.gdprc--dark .gdprc__link { color: #93c5fd; }
.gdprc__link[hidden] { display: none; }
.gdprc__link:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.gdprc__spacer { flex: 1 1 auto; }
.gdprc__btn:hover { filter: brightness(1.1); }
.gdprc__btn:focus-visible,
.gdprc-reopen:focus-visible,
.gdprc__switch input:focus-visible + .gdprc__slider { outline: 3px solid #f59e0b; outline-offset: 2px; }
.gdprc__btn[hidden] { display: none; } .gdprc__prefs { margin-top: 12px; }
.gdprc__cats { list-style: none; margin: 0; padding: 0; }
.gdprc__cat { border-top: 1px solid var(--gdprc-border); padding: 12px 0; margin: 0; }
.gdprc__cat-desc { margin: 4px 0 0 56px; font-size: 14px; color: var(--gdprc-muted); }
.gdprc__switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; position: relative; }
.gdprc__switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.gdprc__slider {
position: relative; flex: 0 0 44px; height: 24px; border-radius: 24px;
background: #9ca3af; transition: background .2s;
}
.gdprc__slider::after {
content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
background: #fff; border-radius: 50%; transition: transform .2s;
}
.gdprc__switch input:checked + .gdprc__slider { background: var(--gdprc-accent); }
.gdprc__switch input:checked + .gdprc__slider::after { transform: translateX(20px); }
.gdprc__switch input:disabled + .gdprc__slider { opacity: .6; cursor: not-allowed; } .gdprc-reopen {
position: fixed; left: 16px; bottom: 16px; z-index: 2147482999;
width: 44px; height: 44px; border-radius: 50%;
border: 0; background: var(--gdprc-accent, #1e40af); color: #fff;
display: flex; align-items: center; justify-content: center;
cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
padding: 0;
}
.gdprc-reopen[hidden] { display: none; } .gdprc-ph {
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
min-height: 200px; padding: 24px; text-align: center;
background: #f3f4f6; border: 1px dashed #9ca3af; border-radius: 8px; color: #374151;
}
.gdprc-ph p { margin: 0; }
@media (max-width: 782px) {
.gdprc--left-half .gdprc__box { left: 8px; right: 8px; bottom: 8px; width: auto; min-width: 0; }
}
@media (max-width: 600px) {
.gdprc__box { padding: 16px; }
.gdprc__actions { flex-direction: column; align-items: stretch; }
.gdprc__spacer { display: none; }
.gdprc__link { order: 9; align-self: center; }
.gdprc__btn { width: 100%; }
.gdprc__cat-desc { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
.gdprc__box, .gdprc__backdrop, .gdprc__slider, .gdprc__slider::after { transition: none; }
}