.cookie-consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  width: min(28rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
  font: 400 0.95rem/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
}

.cookie-consent-banner[hidden] {
  display: none;
}

.cookie-consent-manage[hidden] {
  display: none;
}

.cookie-consent-banner p {
  margin: 0 0 0.85rem;
}

.cookie-consent-banner__title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.cookie-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-consent-button {
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  cursor: pointer;
  font: inherit;
}

.cookie-consent-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.cookie-consent-button--primary {
  background: #0f766e;
  color: #fff;
}

.cookie-consent-button--secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.cookie-consent-manage {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9998;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  font: 600 0.92rem/1 "Segoe UI", system-ui, -apple-system, sans-serif;
}

.cookie-consent-manage:focus-visible {
  outline: 3px solid rgba(148, 163, 184, 0.45);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .cookie-consent-banner,
  .cookie-consent-manage {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .cookie-consent-banner {
    width: calc(100vw - 1.5rem);
  }

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