/* ===================================================================
   RenoRise — Cookie notice banner
   Intentionally simple: this site currently uses only strictly
   necessary local storage, so there is nothing to "consent" to.
   The banner is informational with a link to details, not a blocking
   accept/reject wall. See cookie-consent.js for the extension point
   for when optional technologies are added later.
=================================================================== */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 400;
  max-width: 620px;
  margin: 0 auto;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(11, 31, 61, 0.35);
  padding: 1rem 1.2rem;
  display: none;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1 1 260px;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-banner a {
  color: var(--color-sky);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-banner-actions button {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--color-white);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cookie-banner-actions button.cookie-banner-ok {
  background: var(--color-blue);
  border-color: var(--color-blue);
}

.cookie-banner-actions button:hover,
.cookie-banner-actions button:focus-visible {
  border-color: var(--color-white);
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.6rem;
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions {
    justify-content: flex-end;
  }
}
