/* Cookie consent banner */

.cookie-notice {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  box-sizing: border-box;
}

.cookie-notice[hidden] {
  display: none !important;
}

.cookie-notice.cookie-notice--visible {
  display: flex;
}

.cookie-notice__panel {
  pointer-events: auto;
  width: 100%;
  max-width: 520px;
  padding: 1.15rem 1.25rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  color: var(--navy, #1e293b);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
  animation: cookie-notice-in 0.28s ease-out;
}

@keyframes cookie-notice-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-notice__title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy, #1e293b);
}

.cookie-notice__text {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #64748b;
}

.cookie-notice__text a {
  color: var(--logo-blue, #004aad);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cookie-notice__btn {
  flex: 1 1 auto;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.cookie-notice__btn--ghost {
  background: #fff;
  border-color: #e2e8f0;
  color: #64748b;
}

.cookie-notice__btn--ghost:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.cookie-notice__btn--secondary {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: var(--navy, #1e293b);
}

.cookie-notice__btn--secondary:hover {
  background: #e2e8f0;
}

.cookie-notice__btn--primary,
.cookie-notice__btn--save {
  background: var(--logo-blue, #004aad);
  border-color: var(--logo-blue, #004aad);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 74, 173, 0.28);
}

.cookie-notice__btn--primary:hover,
.cookie-notice__btn--save:hover {
  background: var(--logo-blue-dark, #003884);
  border-color: var(--logo-blue-dark, #003884);
}

.cookie-notice__btn:active {
  transform: scale(0.98);
}

.cookie-notice__prefs {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.cookie-notice__pref {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.4rem 0;
  cursor: pointer;
}

.cookie-notice__pref--locked {
  cursor: default;
  opacity: 0.85;
}

.cookie-notice__pref input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  accent-color: var(--logo-blue, #004aad);
}

.cookie-notice__pref-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.cookie-notice__pref-text strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy, #1e293b);
}

.cookie-notice__pref-text span {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.4;
}

.cookie-notice__btn--save {
  width: 100%;
  margin-top: 0.55rem;
}

@media (max-width: 480px) {
  .cookie-notice {
    padding: 0.65rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  }

  .cookie-notice__panel {
    padding: 1rem;
    border-radius: 14px;
  }

  .cookie-notice__actions {
    flex-direction: column;
  }

  .cookie-notice__btn {
    width: 100%;
    min-height: 2.5rem;
    font-size: 0.82rem;
  }
}
