.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid #e0e0e0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  padding: 1.5rem;
  transition: transform 0.3s ease-in-out;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner-content {
  max-width: 1200px;
  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;
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cookie-btn-primary {
  background: #0066FF;
  color: white;
}

.cookie-btn-primary:hover {
  background: #0052CC;
}

.cookie-btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #d0d0d0;
}

.cookie-btn-secondary:hover {
  background: #e8e8e8;
}

.cookie-btn-tertiary {
  background: white;
  color: #0066FF;
  border: 2px solid #0066FF;
}

.cookie-btn-tertiary:hover {
  background: #f0f7ff;
}

.cookie-link {
  color: #0066FF;
  text-decoration: underline;
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 0.5rem;
}

.cookie-link:hover {
  color: #0052CC;
}

.cookie-preferences {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.cookie-preferences.hidden {
  opacity: 0;
  pointer-events: none;
}

.cookie-preferences-dialog {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cookie-preferences-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-preferences-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.close-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.cookie-preferences-content {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.cookie-preferences-content > p {
  margin-bottom: 1.5rem;
  color: #666;
  line-height: 1.6;
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.cookie-category-header {
  margin-bottom: 0.75rem;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.cookie-toggle input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 48px;
  height: 24px;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.3s;
  flex-shrink: 0;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
  background: #0066FF;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.cookie-toggle input[type="checkbox"]:disabled + .toggle-slider {
  background: #0066FF;
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle-label {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 1rem;
}

.cookie-category-description {
  margin: 0;
  padding-left: 57px;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cookie-preferences-footer {
  padding: 1.5rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.footer-link-btn {
  background: none;
  border: none;
  color: #0066FF;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.footer-link-btn:hover {
  color: #0052CC;
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-banner-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
    padding: 0.875rem;
  }

  .cookie-link {
    text-align: center;
    display: block;
  }

  .cookie-preferences-dialog {
    max-height: 95vh;
  }

  .cookie-preferences-header {
    padding: 1rem;
  }

  .cookie-preferences-header h2 {
    font-size: 1.25rem;
  }

  .cookie-preferences-content {
    padding: 1rem;
  }

  .cookie-preferences-footer {
    flex-direction: column;
    padding: 1rem;
  }

  .cookie-preferences-footer .cookie-btn {
    width: 100%;
  }

  .cookie-category-description {
    padding-left: 0;
    margin-top: 0.5rem;
  }
}
