/* Cookie consent banner + policy modal */

:root {
  --cc-font: 'Open Sans', system-ui, -apple-system, sans-serif;
}

#cookieBar-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

#cookieBar-overlay.is-visible {
  opacity: 1;
}

#cookieBar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 640px;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  font: 400 10pt/1.5 var(--cc-font);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

#cookieBar p {
  margin: 0;
  text-align: left;
}

#cookieBar a {
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

#cookieBar a:hover {
  color: #555;
}

#cookieBar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

#cookieBar-accept,
#cookieBar-reject {
  padding: 0.55rem 1.5rem;
  border-radius: 6px;
  font: 600 10pt var(--cc-font);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

#cookieBar-accept {
  border: 0;
  background: #000;
  color: #fff;
}

#cookieBar-accept:hover,
#cookieBar-accept:focus-visible {
  background: #333;
}

#cookieBar-reject {
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: transparent;
  color: #1a1a1a;
}

#cookieBar-reject:hover,
#cookieBar-reject:focus-visible {
  background: rgba(0, 0, 0, 0.05);
}

#cookieBar-accept:active,
#cookieBar-reject:active {
  transform: scale(0.97);
}

#cookiePolicy {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

#cookiePolicy.is-visible {
  opacity: 1;
  visibility: visible;
}

/* The modal is a column: a scrollable body, plus a footer that never
   scrolls — so the OK button can never overlap text underneath it. */
#cookiePolicy-content {
  display: flex;
  flex-direction: column;
  width: 600px;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  font: 400 10pt/1.6 var(--cc-font);
  color: #1a1a1a;
}

#cookiePolicy-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.75rem 1.75rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

#cookiePolicy-body h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 12pt;
  font-weight: 700;
}

#cookiePolicy-body h3:first-child {
  margin-top: 0;
}

#cookiePolicy-body p {
  margin: 0 0 0.85rem;
  text-align: left;
}

#cookiePolicy-body a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#cookiePolicy-body a:hover {
  color: #555;
}

#cookiePolicy-body::-webkit-scrollbar {
  width: 8px;
}

#cookiePolicy-body::-webkit-scrollbar-track {
  background: transparent;
}

#cookiePolicy-body::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.25);
}

#cookiePolicy-footer {
  flex: none;
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#cookiePolicy-ok {
  padding: 0.55rem 1.5rem;
  border: 0;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font: 600 10pt var(--cc-font);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

#cookiePolicy-ok:hover,
#cookiePolicy-ok:focus-visible {
  background: #333;
}

#cookiePolicy-ok:active {
  transform: scale(0.97);
}