.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.cookie-banner-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.cookie-banner-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  padding: 0;
}

.cookie-banner-close:hover {
  color: var(--text-color);
}

.cookie-banner-text {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

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

.cookie-banner-buttons .btn {
  flex: 1;
  min-width: 150px;
}

.cookie-settings {
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
  display: none;
}

.cookie-settings.active {
  display: block;
}

.cookie-settings h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.cookie-category-info h5 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cookie-category-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
}

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

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: 0.3s;
  border-radius: 26px;
}

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

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

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background-color: var(--accent-color);
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-toggle input:disabled + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem;
  }
  
  .cookie-banner-buttons {
    flex-direction: column;
  }
  
  .cookie-banner-buttons .btn {
    min-width: 100%;
  }
  
  .cookie-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
