.cookie-consent,
.cookie-settings,
.cookie-dialog {
  font-family: Arial, Helvetica, sans-serif;
  color: #1c1c1a;
}

.cookie-consent {
  position: fixed;
  z-index: 10000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  max-width: 680px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid #d9d6ce;
  border-radius: 4px;
  background: #f3f1ec;
  box-shadow: 0 8px 30px rgba(28, 28, 26, .16);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-consent[hidden] { display: none; }
.cookie-consent p { margin: 0 0 14px; }
.cookie-consent a { text-decoration: underline; }

.cookie-actions,
.cookie-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-consent button,
.cookie-dialog button,
.cookie-settings {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #1c1c1a;
  border-radius: 2px;
  background: #f3f1ec;
  color: #1c1c1a;
  font: inherit;
  cursor: pointer;
}

.cookie-consent button.primary,
.cookie-dialog button.primary {
  background: #1c1c1a;
  color: #f3f1ec;
}

.cookie-settings {
  position: fixed;
  z-index: 9999;
  right: 12px;
  bottom: 12px;
  min-height: 36px;
  padding: 7px 10px;
  border-color: #d9d6ce;
  background: #f3f1ec;
  font-size: 12px;
  box-shadow: 0 3px 12px rgba(28, 28, 26, .10);
}

.cookie-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid #d9d6ce;
  border-radius: 4px;
  background: #f3f1ec;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-dialog::backdrop { background: rgba(28, 28, 26, .45); }
.cookie-dialog h2 { margin: 0 0 18px; }

.cookie-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid #d9d6ce;
}

.cookie-category strong,
.cookie-category span { display: block; }
.cookie-category span { color: #77766f; }
.cookie-category input { margin-top: 4px; }

@media (max-width: 640px) {
  .cookie-consent { right: 10px; bottom: 10px; left: 10px; padding: 14px; }
  .cookie-actions button { flex: 1 1 140px; }
  .cookie-settings { right: 8px; bottom: 8px; }
}
