/* Cookie consent banner + preferences page */
.cc-root[hidden] { display: none !important; }
.cc-banner {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.25rem;
}
.cc-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cc-banner__title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}
.cc-banner__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #cbd5e1;
  max-width: 42rem;
}
.cc-banner__desc a { color: #7dd3fc; }
.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cc-btn {
  border: 1px solid #475569;
  background: transparent;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.cc-btn:hover { background: #1e293b; }
.cc-btn--primary {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}
.cc-btn--primary:hover { background: #135e96; }
.cc-btn--ghost { background: transparent; }

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cc-modal[hidden] { display: none !important; }
.cc-modal__panel {
  background: #fff;
  color: #1a202c;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  width: min(420px, 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.cc-modal__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}
.cc-modal__row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0.55rem 0;
  font-size: 0.95rem;
}
.cc-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.cc-modal .cc-btn { color: #1a202c; border-color: #cbd5e1; }
.cc-modal .cc-btn--primary { color: #fff; border-color: #2271b1; }

.cookie-prefs__form { margin: 1rem 0 1.5rem; }
.cookie-prefs__row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.65rem 0;
  font-size: 0.95rem;
}
.cookie-prefs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.cookie-prefs__btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1a202c;
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.cookie-prefs__btn--primary {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}
.cookie-prefs__btn--danger {
  border-color: #fca5a5;
  color: #b91c1c;
}
.cookie-prefs__saved-date { margin-top: 0.75rem; color: #4b5563; }
.cookie-prefs__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.75rem 0;
}
.cookie-prefs__table th,
.cookie-prefs__table td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.cookie-prefs__table th { background: #f9fafb; }
.cookie-prefs__table code { font-size: 0.85em; }
@media (max-width: 640px) {
  .cc-banner__actions { width: 100%; }
  .cc-btn { flex: 1 1 auto; }
}
