.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0.75rem;
  width: min(calc(100% - 1.5rem), 56rem);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem);
  gap: 0.9rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border: 1px solid #dbe4f0;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-family: "IBM Plex Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
  z-index: 2147483000;
}

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

.cookie-copy {
  min-width: 0;
}

.cookie-kicker,
.cookie-meta span {
  display: none;
}

.cookie-title {
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.2;
}

.cookie-description {
  max-width: 38rem;
  margin: 0.25rem 0 0;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.4;
}

.cookie-meta {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  line-height: 1.2;
}

.cookie-privacy-link {
  color: #4338ca;
  font-weight: 600;
  text-underline-offset: 0.16em;
}

.cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.btn-consent {
  min-height: 36px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.45rem 0.6rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.btn-consent:hover {
  transform: translateY(-1px);
}

.btn-consent-primary {
  border-color: #5d56c8;
  background: #5d56c8;
  color: #ffffff;
  box-shadow: 0 5px 12px rgba(93, 86, 200, 0.2);
}

.btn-consent-primary:hover {
  background: #514ab8;
  box-shadow: 0 7px 16px rgba(93, 86, 200, 0.25);
}

.btn-consent-secondary {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.btn-consent-secondary:hover {
  border-color: #94a3b8;
  background: #e2e8f0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.btn-consent:focus-visible,
.cookie-privacy-link:focus-visible,
.privacy-choices-link:focus-visible {
  outline: 3px solid rgba(93, 86, 200, 0.32);
  outline-offset: 2px;
}

.privacy-choices-link {
  cursor: pointer;
}

.privacy-choices-separator {
  opacity: 0.55;
}

.privacy-choices-footer {
  width: min(calc(100% - 2rem), 88rem);
  margin: 0 auto;
  padding: 0.9rem 1rem 1.25rem;
  color: var(--text-muted, #64748b);
  font-family: inherit;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.privacy-choices-footer .privacy-choices-link {
  color: inherit;
  opacity: 0.72;
  text-underline-offset: 0.18em;
}

.privacy-choices-footer .privacy-choices-link:hover {
  opacity: 1;
}

body.home-page {
  overflow-x: hidden;
  overflow-y: auto;
}

body.home-page .privacy-choices-footer {
  position: relative;
  z-index: 2;
  color: #8a94a6;
}

@media (max-width: 760px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.75rem;
  }
}

@media (max-width: 420px) {
  .cookie-banner {
    bottom: 0.4rem;
    width: calc(100% - 0.8rem);
    max-height: calc(100vh - 0.8rem);
    max-height: calc(100dvh - 0.8rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem;
  }

  .btn-consent {
    padding-inline: 0.4rem;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-consent {
    transition: none;
  }
}
