/* ==========================================================================
   Cookie Consent Banner — PECR / UK GDPR Compliant
   ========================================================================== */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a1c;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-smooth, cubic-bezier(0.16, 1, 0.3, 1));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

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

.cookie-consent__wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.cookie-consent__text {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0 0 1.6rem;
}

.cookie-consent__text a {
  color: var(--color-cyan, #00D8D6);
  text-underline-offset: 3px;
  text-decoration: underline;
}

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

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

.cookie-consent__btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

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

.cookie-consent__btn--accept {
  background: var(--color-primary, #e3fc02);
  color: #000;
}

.cookie-consent__btn--accept:hover {
  box-shadow: 0 4px 12px rgba(227, 252, 2, 0.3);
}

.cookie-consent__btn--reject {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent__btn--reject:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-consent__btn--manage {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 1rem 1.2rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__btn--manage:hover {
  color: #fff;
  transform: none;
}

/* Preferences panel */
.cookie-consent__preferences {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

.cookie-consent__preferences--visible {
  display: block;
}

.cookie-consent__category {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-consent__category:last-child {
  border-bottom: none;
}

.cookie-consent__toggle {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 24px;
  margin-top: 2px;
}

.cookie-consent__toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-consent__toggle-track {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  transition: background 0.3s;
}

.cookie-consent__toggle-track::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-track {
  background: var(--color-primary, #e3fc02);
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-track::after {
  transform: translateX(20px);
}

.cookie-consent__toggle input:disabled + .cookie-consent__toggle-track {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-consent__toggle input:focus-visible + .cookie-consent__toggle-track {
  outline: 2px solid var(--color-primary, #e3fc02);
  outline-offset: 2px;
}

.cookie-consent__category-info h4 {
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.4rem;
}

.cookie-consent__category-info p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.5;
}

.cookie-consent__save {
  margin-top: 1.6rem;
}

/* Mobile adjustments */
@media screen and (max-width: 599px) {
  .cookie-consent__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__btn {
    text-align: center;
  }

  .cookie-consent__btn--manage {
    text-align: left;
  }
}
