#cookie-consent-banner {
  position: fixed;
  left: 50%;              /* center anchor */
  transform: translateX(-50%); /* center shift */
  right: auto;            /* not needed when using translate centering */
  bottom: 0;
  z-index: 11000;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  padding: 1rem;
  display: none;
  width: 50vw;
  border-radius: 50px;
  margin-bottom: 1rem;
}

@media only screen and (max-width: 700px) {
  #cookie-consent-banner {
    width: 90vw;
    margin: 0.5rem;
  }
}

#cookie-consent-banner .content {
  max-width: calc(100% - 2rem);
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
#cookie-consent-banner p {
  margin: 0;
  font-size: 0.95rem;
}
#cookie-consent-banner .actions {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
  flex-wrap: wrap; /* allow wrapping */
}
#cookie-consent-banner button {
  padding: 0.5rem 1rem;
  border-radius: 24px;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
}
#cookie-consent-banner button#cookie-reject {
  background: #fff;
  color: #000;
}
#cookie-consent-banner .actions button {
  white-space: nowrap;
  flex: 0 1 auto; /* default: fit content */
}
#cookie-consent-banner .legal-links {
  width: 100%;
  text-align: center;
  /* margin-top: 0.5rem; */
}
#cookie-consent-banner .legal-links a {
  color: #000;
  text-decoration: underline;
  font-size: 0.9rem;
}

/* Preferences panel */
#cookie-prefs {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 16px;
}
#cookie-prefs h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}
#cookie-prefs .row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
#cookie-prefs .actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
@media (max-width: 900px) {
  #cookie-consent-banner .actions button {
    flex: 0 0 calc(50% - 0.25rem); /* two buttons per row */
  }
  #cookie-consent-banner .actions button:nth-child(3) {
    flex: 0 0 100%;       /* full width for the third */
    margin: 0 auto;       /* center the button in its row */
    max-width: max-content;
  }
}
@media (max-width: 600px) {
  #cookie-consent-banner .content {
    flex-direction: column;
    align-items: stretch;
  }
  #cookie-consent-banner .actions {
    justify-content: center;
  }
}
