/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  z-index: 1000;
  font-size: 1.4rem;
  display: none;
}

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

.cookie-banner-content {
  max-width: 120rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text p {
  margin: 0;
}

.cookie-banner-text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-banner-button {
  padding: 0.8rem 1.6rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.4rem;
  border: none;
}

.cookie-banner-accept {
  background-color: var(--primary-color);
  color: white;
}

.cookie-banner-accept:hover {
  background-color: var(--primary-dark);
}

.cookie-banner-reject {
  background-color: #f1f1f1;
  color: var(--text-color);
}

.cookie-banner-reject:hover {
  background-color: #e5e5e5;
}

.cookie-banner-customize {
  background-color: transparent;
  color: var(--primary-color);
  text-decoration: underline;
}

.cookie-banner-customize:hover {
  color: var(--primary-dark);
}

/* Cookie Preferences Modal */
.cookie-preferences {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

.cookie-preferences.visible {
  display: flex;
}

.cookie-preferences-content {
  background-color: white;
  padding: 3.2rem;
  border-radius: var(--border-radius);
  max-width: 60rem;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-preferences h3 {
  margin-top: 0;
  margin-bottom: 2.4rem;
}

.cookie-option {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cookie-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cookie-option-title {
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 5rem;
  height: 2.6rem;
}

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

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition);
  border-radius: 3.4rem;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 1.8rem;
  width: 1.8rem;
  left: 0.4rem;
  bottom: 0.4rem;
  background-color: white;
  transition: var(--transition);
  border-radius: 50%;
}

input:checked + .cookie-slider {
  background-color: var(--primary-color);
}

input:checked + .cookie-slider:before {
  transform: translateX(2.4rem);
}

.cookie-option-description {
  color: var(--text-light);
  margin: 0;
  font-size: 1.4rem;
}

.cookie-preferences-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2.4rem;
}

@media screen and (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-banner-button {
    width: 100%;
  }
}