/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy, #1B2A4A);
  color: var(--cream, #FAF7F2);
  padding: 1rem 1.5rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-consent.is-visible {
  transform: translateY(0);
}

.cookie-consent[aria-hidden="true"] {
  display: none;
}

.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-consent-message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-cookie:focus-visible {
  outline: 2px solid var(--gold, #C9A96E);
  outline-offset: 2px;
}

.btn-cookie-accept {
  background: var(--gold, #C9A96E);
  color: var(--navy, #1B2A4A);
}

.btn-cookie-accept:hover {
  background: #b8983f;
  color: var(--navy, #1B2A4A);
}

.btn-cookie-decline {
  background: transparent;
  color: var(--cream, #FAF7F2);
  border: 1px solid var(--cream, #FAF7F2);
}

.btn-cookie-decline:hover {
  background: rgba(250, 247, 242, 0.15);
  color: var(--cream, #FAF7F2);
}

/* Button styled as a link (for Cookie Settings in footer) */
button.link-style {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

button.link-style:hover {
  text-decoration: underline;
  color: inherit;
}

button.link-style:focus-visible {
  outline: 2px solid var(--gold, #C9A96E);
  outline-offset: 2px;
}

/* Responsive: stack on small screens */
@media (max-width: 600px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent-actions {
    width: 100%;
    justify-content: center;
  }

  .btn-cookie {
    flex: 1;
  }
}
