.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px max(16px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -4px 24px #00000012;
  max-height: 70dvh;
  overflow: auto;
}
.cookie-copy { flex: 1; min-width: 0; }
.cookie-copy p { margin: 6px 0 0; font-size: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--leaf);
  border-radius: 4px;
  background: #fff;
  color: var(--leaf-deep);
  font-size: 14px;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}
.cookie-actions [data-cookie-action="accept"],
.cookie-actions [data-cookie-action="save"] { background: var(--leaf-deep); color: #fff; }
.cookie-actions button:focus-visible,
.cookie-settings-link:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.cookie-settings-link {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-dialog {
  width: min(540px, calc(100% - 32px));
  max-height: 90dvh;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}
.cookie-dialog::backdrop { background: #0008; }
.cookie-dialog h2 { font: 700 22px/1.3 var(--font); margin: 0 0 16px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.cookie-option small { display: block; margin-top: 4px; font-size: 14px; }
.cookie-option input { flex: 0 0 22px; width: 22px; height: 22px; accent-color: var(--leaf-deep); }
.cookie-dialog .cookie-actions { margin-top: 20px; }
@media (max-width: 900px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .cookie-banner .cookie-actions button { flex: 1 1 140px; }
}
