/* ============================================================
   Cookie consent banner
   ============================================================ */
.cc-banner {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, calc(100vw - 200px));
  background: #fff;
  color: #14202e;
  border-radius: 18px;
  box-shadow: 0 30px 70px -20px rgba(8, 24, 46, .55);
  z-index: 2005;
  font-family: "Assistant", system-ui, sans-serif;
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  animation: ccIn .2s ease;
}
.cc-banner[hidden] { display: none; }
@keyframes ccIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

.cc-text {
  flex: 1 1 260px;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #2a3744;
}
.cc-text strong { display: block; font-size: 16px; font-weight: 800; color: #14202e; margin-bottom: 4px; }
.cc-text a { color: #0b4da2; font-weight: 600; text-decoration: underline; }

.cc-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  margin-inline-start: auto;
}
.cc-btn {
  border: 0;
  border-radius: 12px;
  padding: 13px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn:focus-visible { outline: 3px solid #ffb300; outline-offset: 3px; }
.cc-accept { background: #0b4da2; color: #fff; }
.cc-accept:hover { background: #083a7a; }
.cc-reject {
  background: #fff;
  color: #2a3744;
  border: 1px solid #d9e1ea;
}
.cc-reject:hover { border-color: #0b4da2; color: #0b4da2; }

@media (max-width: 640px) {
  .cc-banner {
    bottom: 96px;                     /* clear the bottom FAB row */
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    padding: 18px;
  }
  @keyframes ccIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .cc-actions { width: 100%; margin-inline-start: 0; }
  .cc-btn { flex: 1 1 0; padding: 13px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner { animation: none; }
}
