.cookie-consent {
  position: fixed;
  z-index: 1000;
  inset-inline: 12px;
  bottom: 12px;
  max-width: 720px;
  max-height: min(80vh, 520px);
  margin-inline: auto;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel, #ffffff);
  box-shadow: 0 18px 48px rgba(6, 33, 37, 0.22);
}

.cookie-consent-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.cookie-consent h2,
.cookie-consent h3,
.cookie-consent p {
  margin-top: 0;
}

.cookie-consent h2 {
  margin-bottom: 8px;
}

.cookie-consent h3 {
  margin-bottom: 6px;
}

.cookie-consent-copy p,
.cookie-consent-settings-copy p {
  margin-bottom: 0;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-consent-actions button {
  min-height: 42px;
}

.cookie-consent-options {
  display: grid;
  gap: 10px;
}

.cookie-consent-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface, #ffffff);
  cursor: pointer;
}

.cookie-consent-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.cookie-consent-option span {
  display: grid;
  gap: 2px;
}

.cookie-consent-option small {
  color: var(--muted);
}

@media (max-width: 560px) {
  .cookie-consent {
    inset-inline: 8px;
    bottom: 8px;
  }

  .cookie-consent-panel {
    padding: 16px;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions button {
    width: 100%;
  }
}
