/* ============================================
   EXPRESS AIR PARKING — Cookie Consent
   Banner + preferences panel
   ============================================ */

.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  background: var(--white);
  border-top: 1px solid var(--neutral-200);
  box-shadow: 0 -8px 30px rgba(13, 43, 74, 0.12);
  padding: var(--space-lg, 1.5rem) var(--space-md, 1rem);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-banner.is-visible { transform: translateY(0); }

.cc-banner__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.cc-banner__text {
  flex: 1 1 auto;
  font-family: var(--font-body, sans-serif);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--neutral-600);
}

.cc-banner__title {
  display: block;
  font-family: var(--font-heading, sans-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--neutral-800);
  margin-bottom: 0.35rem;
}

.cc-banner__text a {
  color: var(--primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cc-btn {
  font-family: var(--font-body, sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cc-btn--accept {
  background: var(--accent-gold);
  color: var(--primary-800);
}
.cc-btn--accept:hover { background: var(--accent-gold-hover); }

.cc-btn--reject {
  background: var(--white);
  color: var(--neutral-700);
  border-color: var(--neutral-300);
}
.cc-btn--reject:hover { background: var(--neutral-100); }

.cc-btn--link {
  background: none;
  color: var(--neutral-500);
  padding: 0.7rem 0.5rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-btn--link:hover { color: var(--primary-600); }

/* --- Preferences panel --- */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(13, 43, 74, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cc-modal.is-visible { opacity: 1; pointer-events: auto; }

.cc-modal__box {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.cc-modal.is-visible .cc-modal__box { transform: translateY(0); }

.cc-modal__title {
  font-family: var(--font-heading, sans-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
}

.cc-modal__intro {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--neutral-600);
  margin-bottom: 1.5rem;
}

.cc-group {
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
}

.cc-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cc-group__name {
  font-family: var(--font-heading, sans-serif);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--neutral-800);
}

.cc-group__desc {
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--neutral-500);
  margin-top: 0.45rem;
}

.cc-group__locked {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* toggle */
.cc-switch { position: relative; width: 44px; height: 24px; flex: 0 0 auto; }
.cc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-switch__slider {
  position: absolute;
  inset: 0;
  background: var(--neutral-300);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cc-switch__slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.cc-switch input:checked + .cc-switch__slider { background: var(--primary-500); }
.cc-switch input:checked + .cc-switch__slider::before { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-switch__slider { outline: 2px solid var(--primary-400); outline-offset: 2px; }

/* Stays reachable when the category list is taller than the viewport. */
.cc-modal__actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  position: sticky;
  bottom: -2rem;
  margin: 1.25rem -2rem -2rem;
  padding: 1rem 2rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--neutral-200);
}

@media (max-width: 860px) {
  .cc-banner__inner { flex-direction: column; align-items: stretch; gap: 1.1rem; }
  .cc-actions { justify-content: stretch; }
  .cc-actions .cc-btn { flex: 1 1 auto; text-align: center; }
  .cc-btn--link { flex-basis: 100%; }
}

@media (max-width: 480px) {
  .cc-banner { padding: 1.15rem 1rem; }
  .cc-modal__box { padding: 1.5rem; }
  .cc-modal__actions {
    bottom: -1.5rem;
    margin: 1.25rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem 1.25rem;
  }
  .cc-modal__actions .cc-btn { flex: 1 1 auto; }
}
