/* Cookie consent banner (built by js/cookieConsent.js) */
#cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 42, 74, 0.35);
  backdrop-filter: blur(4px);
  z-index: 1999;
  display: none;
}

#cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 460px;
  box-sizing: border-box;
  background: var(--white);
  color: var(--navy);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(11, 42, 74, 0.16);
  z-index: 2000;
  display: none;
  flex-direction: column;
  gap: 14px;
}

#cookie-banner:focus {
  outline: none;
}

body.cookies-open {
  overflow: hidden;
}

body.cookies-open #cookie-overlay {
  display: block;
}

body.cookies-open #cookie-banner {
  display: flex;
}

#cookie-banner h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

#cookie-banner p {
  margin: 0;
  font-size: 15px;
  color: var(--text-body);
}

/* Both choices get the same size and weight (AEPD guidance) */
.cookie-buttons {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.cookie-buttons button {
  flex: 1 1 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  height: 48px;
  border-radius: 12px;
  box-sizing: border-box;
  cursor: pointer;
}

#decline-cookies {
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
}

#accept-cookies {
  color: var(--white);
  background: var(--accent);
  border: 2px solid var(--accent);
}
