:root {
  --cookie-surface: oklch(1 0 0);
  --cookie-ink: oklch(0.262 0.08 270);
  --cookie-muted: oklch(0.43 0.05 270);
  --cookie-accent: oklch(0.839 0.12 82);
  --cookie-border: oklch(0.9 0.02 290);
  --cookie-winter: oklch(0.95 0.018 290);
  --cookie-snowbank: oklch(0.94 0.022 290);
  --cookie-ground-shadow: oklch(0.262 0.08 270 / 0.22);
  --cookie-shadow: 0 12px 60px oklch(0.262 0.08 270 / 0.24);
  --cookie-font: 'Inter', sans-serif;
  --cookie-heading: 'Inter Tight', sans-serif;
}
#hagemann-cookie-root { font-family:var(--cookie-font); color:var(--cookie-ink); letter-spacing:0; }
#hagemann-cookie-root * { box-sizing:border-box; letter-spacing:0; }
.hg-cookie-panel { position:fixed; z-index:250; bottom:20px; left:20px; width:min(680px,calc(100% - 40px)); padding:24px 28px; max-height:calc(100dvh - 40px); overflow:auto; background:var(--cookie-surface); border:1px solid var(--cookie-border); border-radius:24px; box-shadow:var(--cookie-shadow); animation:cookie-rise .65s cubic-bezier(.22,1,.36,1) both; }
.hg-cookie-forest { position:relative; isolation:isolate; height:160px; margin:-24px -28px 20px; overflow:hidden; background:var(--cookie-winter); border-bottom:1px solid var(--cookie-border); }
.hg-cookie-land { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center bottom; }
.hg-cookie-village { position:absolute; left:35%; bottom:18px; width:150px; height:100px; object-fit:contain; }
.hg-cookie-house { position:absolute; left:24%; bottom:7px; width:80px; height:62px; object-fit:contain; }
.hg-cookie-tree { position:absolute; bottom:0; object-fit:contain; width:100px; height:145px; }
.hg-cookie-tree-left { left:12px; }
.hg-cookie-tree-middle { left:88px; bottom:12px; width:76px; height:112px; }
.hg-cookie-tree-right { right:8px; width:106px; height:153px; z-index:2; }
.hg-cookie-gift-bed { position:absolute; right:91px; bottom:2px; width:62px; height:70px; z-index:1; }
.hg-cookie-gift-bed::before { content:''; position:absolute; left:-7px; right:-9px; bottom:0; height:10px; border-radius:50%; background:var(--cookie-ground-shadow); filter:blur(3px); transform:rotate(-8deg); }
.hg-cookie-gift { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.hg-cookie-gift-bed::after { content:''; position:absolute; left:-9px; right:-7px; bottom:-3px; height:9px; border-radius:50%; background:var(--cookie-snowbank); transform:rotate(-8deg); }
.hg-cookie-snow { position:absolute; inset:0; pointer-events:none; }
.hg-cookie-snow span { position:absolute; top:-8px; width:3px; height:3px; border-radius:50%; background:var(--cookie-surface); opacity:.8; animation:cookie-snowfall 7s linear infinite; }
.hg-cookie-snow span:nth-child(1) { left:5%; animation-delay:-2s; }
.hg-cookie-snow span:nth-child(2) { left:13%; animation-delay:-5s; }
.hg-cookie-snow span:nth-child(3) { left:22%; animation-delay:-1s; }
.hg-cookie-snow span:nth-child(4) { left:30%; animation-delay:-6s; }
.hg-cookie-snow span:nth-child(5) { left:38%; animation-delay:-3s; }
.hg-cookie-snow span:nth-child(6) { left:46%; animation-delay:-4s; }
.hg-cookie-snow span:nth-child(7) { left:54%; animation-delay:-.5s; }
.hg-cookie-snow span:nth-child(8) { left:62%; animation-delay:-5.5s; }
.hg-cookie-snow span:nth-child(9) { left:70%; animation-delay:-2.5s; }
.hg-cookie-snow span:nth-child(10) { left:78%; animation-delay:-6.5s; }
.hg-cookie-snow span:nth-child(11) { left:86%; animation-delay:-1.5s; }
.hg-cookie-snow span:nth-child(12) { left:94%; animation-delay:-3.5s; }
@keyframes cookie-snowfall { from { transform:translate(0,0); } to { transform:translate(12px,180px); } }
@keyframes cookie-rise { from { opacity:0; transform:translateY(70px); } to { opacity:1; transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { .hg-cookie-panel { animation:none; } .hg-cookie-snow span { animation:none; top:25%; } .hg-cookie-snow span:nth-child(even) { top:60%; } }
.hg-cookie-panel:focus { outline:none; }
.hg-cookie-heading { display:flex; align-items:center; gap:12px; }
.hg-cookie-mark { display:grid; place-items:center; width:36px; height:36px; flex-shrink:0; background:var(--cookie-accent); border-radius:50%; font-size:24px; }
.hg-cookie-mark img { width:28px; height:28px; }
.hg-cookie-panel h2 { font-family:var(--cookie-heading); font-size:25px; line-height:1.15; margin:0; font-weight:800; }
.hg-cookie-panel p { font-size:13px; line-height:1.6; color:var(--cookie-muted); margin:12px 0; }
.hg-cookie-links { display:flex; flex-wrap:wrap; gap:10px 20px; margin:16px 0; font-size:12px; }
.hg-cookie-panel a { color:var(--cookie-ink); text-decoration:underline; text-underline-offset:3px; }
.hg-cookie-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
#hagemann-cookie-root .hg-cookie-button { display:flex; align-items:center; justify-content:center; min-height:44px; padding:11px 16px; border:1px solid var(--cookie-ink); border-radius:12px; background:var(--cookie-ink); color:var(--cookie-surface); font:600 13px var(--cookie-font); cursor:pointer; white-space:normal; }
#hagemann-cookie-root .hg-cookie-save { grid-column:1 / -1; background:var(--cookie-surface); color:var(--cookie-ink); border-color:var(--cookie-border); }
#hagemann-cookie-root button:focus-visible, #hagemann-cookie-root a:focus-visible, #hagemann-cookie-root input:focus-visible, #hagemann-cookie-root summary:focus-visible { outline:3px solid var(--cookie-accent); outline-offset:3px; }
#hagemann-cookie-root .hg-cookie-reopen { position:fixed; z-index:210; bottom:12px; left:12px; min-height:36px; border:1px solid var(--cookie-border); border-radius:8px; background:var(--cookie-surface); color:var(--cookie-ink); font:600 12px var(--cookie-font); padding:8px 12px; cursor:pointer; }
.hg-cookie-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 0; border-top:1px solid var(--cookie-border); font-size:13px; }
.hg-cookie-row small { display:block; margin-top:5px; line-height:1.5; color:var(--cookie-muted); }
.hg-cookie-status { flex-shrink:0; font-size:11px; font-weight:600; }
.hg-cookie-row input { appearance:none; width:42px; height:24px; border-radius:20px; background:var(--cookie-border); border:2px solid var(--cookie-muted); flex-shrink:0; cursor:pointer; position:relative; }
.hg-cookie-row input::after { content:''; position:absolute; width:16px; height:16px; top:2px; left:2px; background:var(--cookie-surface); border-radius:50%; }
.hg-cookie-row input:checked { background:var(--cookie-ink); border-color:var(--cookie-ink); }
.hg-cookie-row input:checked::after { left:20px; }
.hg-cookie-row input:disabled { opacity:.5; cursor:not-allowed; }
.hg-cookie-details { border-top:1px solid var(--cookie-border); padding-top:14px; }
.hg-cookie-details summary { cursor:pointer; font-weight:600; font-size:13px; }
@media(max-width:600px) {
  .hg-cookie-panel { left:10px; bottom:10px; width:calc(100% - 20px); padding:20px; max-height:calc(100dvh - 20px); border-radius:20px; }
  .hg-cookie-panel h2 { font-size:21px; }
  .hg-cookie-forest { height:120px; margin:-20px -20px 16px; }
  .hg-cookie-tree { width:66px; height:106px; }
  .hg-cookie-tree-left { left:0; }
  .hg-cookie-tree-middle { left:44px; width:48px; height:78px; }
  .hg-cookie-tree-right { right:0; width:70px; height:112px; }
  .hg-cookie-village { left:28%; bottom:18px; width:105px; height:74px; }
  .hg-cookie-house { left:22%; bottom:5px; width:54px; height:42px; }
  .hg-cookie-gift-bed { right:58px; bottom:1px; width:42px; height:48px; }
  .hg-cookie-gift-bed::after { height:7px; bottom:-2px; }
  .hg-cookie-row { gap:12px; }
}