.cookie-banner, .cookie-preferences { font-family: system-ui, sans-serif; box-sizing: border-box; }
.cookie-banner[hidden], .cookie-preferences[hidden], .cookie-banner [hidden] { display: none !important; }
.cookie-banner { position: fixed; z-index: 1000; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 20px; border: 1px solid #dce5df; border-radius: 16px; color: #1d3028; background: #fff; box-shadow: 0 8px 30px #0003; }
.cookie-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.cookie-banner h2 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; color: inherit; }
.cookie-banner p { margin: 0; font-size: .85rem; line-height: 1.6; color: #46584f; }
.cookie-details { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; }
.cookie-banner .cookie-status { font-size: .72rem; color: #5d6e64; }
.cookie-banner a { color: #287a45; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; }
.cookie-actions button, .cookie-preferences { border: 1px solid #819c92; border-radius: 9px; color: #f3f7f4; background: #304b41; cursor: pointer; font-size: .85rem; font-weight: 600; padding: 11px 16px; min-height: 42px; }
.cookie-actions :is([data-cookie-accept], [data-cookie-reject]) { flex: 1; }
.cookie-actions [data-cookie-accept] { border-color: #287a45; color: #fff; background: #287a45; }
.cookie-actions [data-cookie-accept]:hover { border-color: #206338; background: #206338; }
.cookie-actions [data-cookie-reject] { border-color: #a5b4ac; color: #1d3028; background: #fff; }
.cookie-actions [data-cookie-reject]:hover { border-color: #819c92; background: #f3f7f4; }
.cookie-banner .cookie-close { display: grid; place-items: center; flex: none; width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #5d6e64; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cookie-banner .cookie-close:hover { color: #1d3028; background: #f3f7f4; }
.cookie-banner :is(button, a, h2):focus-visible { outline: 2px solid #287a45; outline-offset: 3px; }
.cookie-preferences:focus-visible { outline: 2px solid #cdeade; outline-offset: 3px; }
.cookie-preferences { position: static; padding: 0; min-height: 0; border: 0; border-radius: 0; color: inherit; background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.cookie-preferences:hover { color: inherit; background: transparent; }
.info-panel .info-links .cookie-preferences { width: 100%; min-height: 66px; padding: 16px 24px; border: 1px solid rgba(var(--accent-rgb), .22); border-radius: 16px; color: var(--tool-ink); background: linear-gradient(110deg, rgba(var(--scene-tint-rgb), .36), rgba(var(--scene-deep-rgb), .38)); font-size: 1rem; text-align: left; text-decoration: none; }
.info-panel .info-links .cookie-preferences:hover { border-color: rgba(var(--accent-rgb), .5); background: linear-gradient(110deg, rgba(var(--scene-tint-rgb), .46), rgba(var(--scene-deep-rgb), .48)); }
@media (max-width: 480px) { .cookie-banner { bottom: max(16px, env(safe-area-inset-bottom)); padding: 18px; } }
@media print { .cookie-banner, .cookie-preferences { display: none !important; } }
