/* UK cookie consent banner + preference panel */

.cookie-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 11000;
  padding: 16px;
  pointer-events: none;
}

.cookie-consent__panel {
  pointer-events: auto;
  max-width: 960px;
  margin: 0 auto;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(18, 99, 251, 0.14);
  background: #fff;
  box-shadow: 0 18px 48px rgba(30, 31, 36, 0.18);
  display: grid;
  gap: 18px;
}

.cookie-consent__panel--prefs {
  max-width: 720px;
}

.cookie-consent__title {
  margin: 0 0 8px;
  font-family: var(--font-head, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.15rem;
  color: var(--navy, #1e1f24);
}

.cookie-consent__copy p {
  margin: 0;
  color: #3a4452;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-consent__links {
  margin-top: 10px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem !important;
}

.cookie-consent__links a {
  color: var(--blue, #1263fb);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-consent__btn {
  appearance: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1.6px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cookie-consent__btn:hover {
  transform: translateY(-1px);
}

.cookie-consent__btn:focus-visible {
  outline: 3px solid var(--blue, #1263fb);
  outline-offset: 2px;
}

.cookie-consent__btn--primary {
  background: var(--grad-brand, linear-gradient(135deg, #43b758 0%, #1263fb 100%));
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 99, 251, 0.28);
}

.cookie-consent__btn--secondary {
  background: #fff;
  color: var(--navy, #1e1f24);
  border-color: rgba(30, 31, 36, 0.18);
}

.cookie-consent__btn--secondary:hover {
  border-color: var(--blue, #1263fb);
  color: var(--blue, #1263fb);
}

.cookie-consent__btn--ghost {
  background: transparent;
  color: var(--blue, #1263fb);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
  box-shadow: none;
}

.cookie-consent__categories {
  display: grid;
  gap: 12px;
}

.cookie-consent__category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(18, 99, 251, 0.12);
  background: #f8fbff;
  cursor: pointer;
}

.cookie-consent__category strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy, #1e1f24);
  font-size: 0.95rem;
}

.cookie-consent__category small {
  display: block;
  color: #5b6777;
  font-size: 0.86rem;
  line-height: 1.45;
}

.cookie-consent__category input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--blue, #1263fb);
}

.cookie-consent__category input[type='checkbox']:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

@media (max-width: 700px) {
  .cookie-consent {
    padding: 10px;
  }

  .cookie-consent__panel {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__btn {
    width: 100%;
    text-align: center;
  }
}
