/* Cookie Banner - GDPR 2026 compliant, matches site footer style */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  font-family: Barlow, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  animation: cookieBannerSlideUp 0.4s ease-out;
}

.cookie-banner__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0c6d56, #7c5e04);
}

.cookie-banner__content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie-banner__text {
  flex: 1;
  min-width: 280px;
}

.cookie-banner__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #ffffff;
}

.cookie-banner__description {
  font-size: 15px;
  line-height: 1.6;
  color: #b0b0b0;
  margin: 0;
}

.cookie-banner__link {
  color: #0c6d56;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.cookie-banner__link:hover {
  color: #7c5e04;
}

.cookie-banner__link:focus {
  outline: 2px solid #0c6d56;
  outline-offset: 2px;
}

/* Settings toggles */
.cookie-banner__settings {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-banner__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner__toggle-label {
  font-size: 15px;
  color: #b0b0b0;
}

/* Toggle switch */
.cookie-banner__switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-banner__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-banner__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  transition: 0.3s;
}

.cookie-banner__slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.cookie-banner__switch input:checked + .cookie-banner__slider {
  background: linear-gradient(135deg, #0c6d56, #7c5e04);
}

.cookie-banner__switch input:checked + .cookie-banner__slider::before {
  transform: translateX(22px);
}

.cookie-banner__switch input:focus + .cookie-banner__slider {
  box-shadow: 0 0 0 2px #0c6d56;
}

/* Buttons - equal prominence per GDPR 2026 */
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cookie-banner__btn {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-banner__btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0c6d56;
}

.cookie-banner__btn--primary {
  background: linear-gradient(135deg, #0c6d56, #7c5e04);
  color: #ffffff;
  border-color: transparent;
}

.cookie-banner__btn--primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.cookie-banner__btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cookie-banner__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

@keyframes cookieBannerSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-banner__content {
    flex-direction: column;
    padding: 20px 16px;
    gap: 16px;
  }

  .cookie-banner__text {
    min-width: 100%;
  }

  .cookie-banner__title {
    font-size: 18px;
  }

  .cookie-banner__description {
    font-size: 14px;
  }

  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__btn {
    width: 100%;
    justify-content: center;
  }
}
