.cookie-banner, .cookie-dialog {
  box-sizing: border-box;
  color: #f5f5f5;
  background: #1a1a1b;
  border: 1px solid #454548;
  border-radius: 18px;
  box-shadow: 0 16px 48px #0009;
  font: 14px/1.45 system-ui, sans-serif;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  z-index: 1000;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 32px));
  padding: 16px 18px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-copy { flex: 1; min-width: 0; }
.cookie-copy strong { font-size: 14px; font-weight: 650; }
.cookie-copy p, .cookie-category p { margin: 5px 0 0; color: #aaa; font-size: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cookie-button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #555;
  border-radius: 9px;
  background: #29292b;
  color: #f5f5f5;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cookie-button:hover, .cookie-button:focus-visible { background: #39393c; }
.cookie-button-primary { background: #eee; color: #161616; border-color: #eee; }
.cookie-button-primary:hover, .cookie-button-primary:focus-visible { background: #ccc; }
.cookie-button-text { background: transparent; border-color: transparent; text-decoration: underline; }
.cookie-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 20px; }
.cookie-dialog::backdrop { background: #0009; }
.cookie-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-dialog h2 { margin: 0; font-size: 21px; }
.cookie-dialog h3 { margin: 0; font-size: 14px; }
.cookie-close { border: 0; background: transparent; color: #ccc; font-size: 24px; cursor: pointer; }
.cookie-category { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid #39393b; }
.cookie-category > span, .cookie-current { color: #aaa; font-size: 12px; white-space: nowrap; }
.cookie-current { margin: 16px 0; }
.cookie-footer-link { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cookie-utility-footer { padding: 18px; text-align: center; }
@media (max-width: 660px) {
  .cookie-banner { bottom: 10px; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .cookie-banner .cookie-actions { justify-content: stretch; }
  .cookie-banner .cookie-button { flex: 1 1 auto; }
  .cookie-dialog .cookie-actions { flex-direction: column; align-items: stretch; }
}
