.cookie-surface {
  --cookie-ink: #19322e;
  --cookie-line: #d9dcd3;
  box-sizing: border-box;
  color: var(--cookie-ink);
  background: #fffdf8;
  border: 1px solid #cfd3c8;
  border-radius: 18px;
  box-shadow: 0 12px 45px -18px #1b27265c;
  font: 500 15px/1.45 Roundo, var(--font-body);
  text-align: left;
}
#cookie-notice {
  position: fixed; z-index: 110; inset: auto auto max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  width: min(414px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow: auto;
  padding: 21px 23px 12px;
}
#cookie-notice[hidden] { display: none; }
.cookie-heading { display: flex; align-items: center; gap: 11px; }
.cookie-heading img { width: 30px; height: 32px; flex: none; }
.cookie-heading h2 { margin: 0; color: inherit; font: 750 23px/1.15 Roundo, var(--font-display); letter-spacing: -.035em; }
.cookie-surface p { margin: 10px 0 15px; font: inherit; color: #435752; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-actions button, .cookie-settings-actions button {
  border: 1px solid var(--cookie-ink); border-radius: 9px; padding: 10px 8px; min-height: 44px;
  background: transparent; color: var(--cookie-ink); font: 700 14px/1.2 Roundo, var(--font-body); cursor: pointer;
  transition: background .17s, color .17s;
}
.cookie-actions button:hover { background: #e8eee6; }
.cookie-settings-actions button { padding-inline: 17px; background: var(--cookie-ink); color: #fffdf8; }
.cookie-settings-actions button:hover { background: #34554a; }
.cookie-links, .cookie-settings-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-links { margin-top: 7px; }
.cookie-links a, .cookie-links button, .cookie-settings-actions a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 2px 0; border: none; background: transparent;
  color: #405950; font: 600 13px/1.3 Roundo, var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.cookie-surface :focus-visible { outline: 2px solid #aa4c24; outline-offset: 3px; }
#cookie-settings { margin: auto; padding: 0; width: min(465px, calc(100% - 24px)); max-height: calc(100dvh - 28px); overflow: auto; overscroll-behavior: contain; }
#cookie-settings::backdrop { background: #152e2d88; }
#cookie-settings form { padding: 21px 22px; margin: 0; }
#cookie-settings .cookie-heading { margin-bottom: 14px; }
.cookie-close { margin-left: auto; display: grid; place-items: center; flex: none; border: 0; border-radius: 50%; width: 40px; height: 40px; background: transparent; color: inherit; cursor: pointer; }
.cookie-close:hover { background: #e9ede5; }
.cookie-category { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 10px; border-top: 1px solid var(--cookie-line); padding: 15px 0; }
.cookie-category h3, .cookie-category label { display: block; margin: 0; font: 750 16px/1.4 Roundo, var(--font-body); color: inherit; }
.cookie-category p { margin: 4px 0 0; font-size: 14px; }
.cookie-always { font-size: 12px; color: #496458; padding-top: 3px; }
.cookie-switch { appearance: none; width: 42px; height: 25px; border: 1px solid #74847b; border-radius: 30px; padding: 2px; background: #dce2dc; margin: 0; cursor: pointer; }
.cookie-switch::before { content: ""; display: block; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #263c3666; transition: transform .18s; }
.cookie-switch:checked { background: #2c6555; border-color: #265848; }
.cookie-switch:checked::before { transform: translateX(17px); }
.cookie-settings-actions { border-top: 1px solid var(--cookie-line); padding-top: 14px; }
@media (max-width: 520px) {
  #cookie-notice { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; padding: 16px 15px 8px; }
  .cookie-heading h2 { font-size: 21px; }
  #cookie-settings form { padding: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  #cookie-notice:not([hidden]), #cookie-settings[open] { animation: cookie-appear .2s ease-out; }
  @keyframes cookie-appear { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) { .cookie-surface * { transition: none; } }
@media (forced-colors: active) { .cookie-switch:checked::before { background: Highlight; } }

