/* Cookie Consent Banner Styles — brand palette (dark ink/gold), matches
   the v7 app + landing page design system. Uses hardcoded hex values
   rather than each page's own CSS variables so this one file renders the
   same everywhere it's included (legacy pages don't declare --gold etc). */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d1f1a;
  border-top: 1px solid rgba(201, 168, 76, 0.28);
  color: #f5f0e8;
  padding: 22px 24px;
  z-index: 9999;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
  display: none; /* Hidden by default */
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-consent-banner.show {
  display: block;
}

.cookie-message {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.cookie-message p {
  flex: 1;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #e6ded0;
  min-width: 240px;
}

.cookie-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-controls button {
  padding: 11px 22px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background 0.2s, border-color 0.2s;
}

.cookie-controls button:first-child {
  background: #c9a84c;
  color: #0d1f1a;
}

.cookie-controls button:first-child:hover {
  background: #e8c97a;
}

.cookie-controls button:nth-child(2) {
  background: transparent;
  color: #c9a84c;
  border: 1px solid #c9a84c;
  font-weight: 500;
}

.cookie-controls button:nth-child(2):hover {
  background: rgba(201, 168, 76, 0.1);
}

.cookie-controls a {
  color: #9aa39b;
  text-decoration: none;
  padding: 10px 4px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.cookie-controls a:hover {
  color: #e6ded0;
  text-decoration: underline;
}

/* Cookie Settings Modal Styles */
.cookie-settings-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-settings-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal-content {
  background: #122b1e;
  border: 1px solid rgba(201, 168, 76, 0.22);
  margin: 20px;
  padding: 30px;
  border-radius: 6px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cookie-modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.cookie-modal-content h3 {
  margin-top: 0;
  color: #f5f0e8;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 25px;
  margin-bottom: 20px;
}

.cookie-category {
  margin-bottom: 18px;
  padding: 16px 17px;
  border: 1px solid rgba(201, 168, 76, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.cookie-category h4 {
  margin: 0 0 9px 0;
  color: #e8c97a;
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-category p {
  margin: 0 0 13px 0;
  color: #9aa39b;
  font-size: 13.5px;
  line-height: 1.5;
}

.cookie-category label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #e6ded0;
}

.cookie-category input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.15);
  accent-color: #c9a84c;
}

.cookie-category input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(201, 168, 76, 0.16);
  align-self: flex-end;
  width: -moz-fit-content;
  width: fit-content;
  flex: 0 0 auto;
  background: transparent;
  box-shadow: none;
}

.cookie-modal-buttons button {
  padding: 11px 22px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background 0.2s, border-color 0.2s;
}

.cookie-modal-buttons button:first-child {
  background: #c9a84c;
  color: #0d1f1a;
}

.cookie-modal-buttons button:first-child:hover {
  background: #e8c97a;
}

.cookie-modal-buttons button:last-child {
  background: transparent;
  color: #9aa39b;
  border: 1px solid rgba(154, 163, 155, 0.4);
  font-weight: 500;
}

.cookie-modal-buttons button:last-child:hover {
  color: #e6ded0;
  border-color: #e6ded0;
}

.cookie-always-active {
  color: #3a9b6e;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-message {
    flex-direction: column;
    text-align: center;
  }

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

  .cookie-controls button {
    flex: 1;
    min-width: 120px;
  }

  .cookie-modal-content {
    margin: 10px;
    padding: 20px;
  }

  .cookie-modal-buttons {
    flex-direction: column;
    align-self: stretch;
    width: 100%;
  }

  .cookie-modal-buttons button {
    width: 100%;
  }
}

/* Animation for banner */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-banner.show {
  animation: slideUp 0.3s ease-out;
}
