/* BroadbandSwitch.uk — cookie consent bar (UK PECR / GDPR aligned UX) */

.cookie-consent {
  position: fixed;
  z-index: 100000;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1rem 1.1rem;
  background: linear-gradient(175deg, #b84d7a 0%, #8f3d62 55%, #7a3655 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(45, 35, 66, 0.35);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
  will-change: transform;
}

.cookie-consent.cookie-consent--visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.cookie-consent__title {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.cookie-consent__text {
  margin: 0 0 0.85rem;
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.92);
}

.cookie-consent__text a {
  color: #ffe8f4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__text a:hover,
.cookie-consent__text a:focus-visible {
  color: #fff;
}

.cookie-consent__meta {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.82);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  justify-content: flex-start;
}

/* Prominent single CTA */
.cookie-consent__btn--primary {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  padding: 0.65rem 1.35rem;
  font-weight: 700;
  border: 2px solid rgba(26, 20, 36, 0.35);
  background: #fff;
  color: #1a1424;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.cookie-consent__btn--primary:hover,
.cookie-consent__btn--primary:focus-visible {
  background: #fff7fb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.cookie-consent__btn--primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cookie-consent__btn--primary:active {
  transform: scale(0.98);
}

/* Subtle link-style actions (Essential only, Manage preferences) */
.cookie-consent__link {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.35rem 0.15rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 400;
  transition: color 0.15s ease;
}

.cookie-consent__link:hover,
.cookie-consent__link:focus-visible {
  color: rgba(255, 255, 255, 0.9);
}

.cookie-consent__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  border-radius: 2px;
}

.cookie-consent__prefs {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #2d2542;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.cookie-consent__prefs[hidden] {
  display: none !important;
}

.cookie-consent__prefs-title {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2d2542;
}

.cookie-consent__prefs .cookie-consent__hint {
  color: #5c5470;
}

.cookie-consent__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-consent__row:last-child {
  margin-bottom: 0;
}

.cookie-consent__row label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-weight: 500;
  color: #2d2542;
}

.cookie-consent__row input:disabled + span {
  opacity: 0.85;
}

.cookie-consent__prefs .cookie-consent__actions {
  margin-top: 0.65rem;
}

.cookie-consent__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: #5c5470;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    transition: none;
    transform: translateY(0);
    opacity: 1;
  }

  .cookie-consent__btn--primary {
    transition: none;
  }

  .cookie-consent__btn--primary:active {
    transform: none;
  }
}

/* Footer “Cookie settings” control */
.footer-cookie-settings {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
  color: #ec86b8;
}
