.edelman-cookie-banner[hidden] {
  display: none;
}

.edelman-cookie-banner {
  position: fixed;
  z-index: 1200;
  right: 16px;
  bottom: 16px;
  left: 16px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 20px 22px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--bg, #ffffff);
  color: var(--text, #0f172a);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.22);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.edelman-cookie-content {
  min-width: 0;
}

.edelman-cookie-title {
  margin: 0 0 8px;
  color: var(--text, #0f172a);
  font-size: 1.125rem;
  line-height: 1.3;
}

.edelman-cookie-message {
  margin: 0;
  color: var(--text-light, #475569);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.edelman-cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 8px;
}

.edelman-cookie-choice {
  box-sizing: border-box;
  min-width: 104px;
  min-height: 44px;
  padding: 9px 14px;
  border: 2px solid var(--primary, #4f46e5);
  border-radius: 6px;
  background: var(--primary, #4f46e5);
  color: #ffffff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.edelman-cookie-choice:hover {
  border-color: var(--primary-dark, #4338ca);
  background: var(--primary-dark, #4338ca);
}

.edelman-cookie-reject {
  background: #ffffff;
  color: var(--primary, #4f46e5);
}

.edelman-cookie-reject:hover {
  background: var(--bg-soft, #f8fafc);
  color: var(--primary-dark, #4338ca);
}

.edelman-cookie-choice:focus-visible,
footer [data-cookie-preferences]:focus-visible {
  outline: 3px solid var(--accent, #0ea5e9);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .edelman-cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 16px;
  }

  .edelman-cookie-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edelman-cookie-choice {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }
}