/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(31, 41, 55, 0.98);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

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

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

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner-text h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.cookie-banner-text p {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-text a {
  color: #60a5fa;
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: #93c5fd;
}

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

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

.cookie-btn-accept {
  background: #2563eb;
  color: white;
}

.cookie-btn-accept:hover {
  background: #1d4ed8;
}

.cookie-btn-reject {
  background: transparent;
  color: #d1d5db;
  border: 1px solid #4b5563;
}

.cookie-btn-reject:hover {
  background: #374151;
  color: white;
}

.cookie-btn-customize {
  background: transparent;
  color: #60a5fa;
  border: 1px solid #60a5fa;
}

.cookie-btn-customize:hover {
  background: #60a5fa;
  color: white;
}

/* Cookie Customization Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cookie-modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.cookie-modal-header h3 {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.cookie-modal-header p {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
}

.cookie-modal-body {
  padding: 1.5rem 2rem;
}

.cookie-category {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

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

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

.cookie-category-title {
  color: #1f2937;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.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: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #2563eb;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.cookie-category-description {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-modal-footer {
  padding: 1rem 2rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  border-top: 1px solid #e5e7eb;
}

.cookie-modal-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-modal-btn-save {
  background: #2563eb;
  color: white;
}

.cookie-modal-btn-save:hover {
  background: #1d4ed8;
}

.cookie-modal-btn-cancel {
  background: #f3f4f6;
  color: #374151;
}

.cookie-modal-btn-cancel:hover {
  background: #e5e7eb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem;
  }
  
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .cookie-banner-text {
    min-width: auto;
  }
  
  .cookie-banner-actions {
    justify-content: center;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 100px;
  }
  
  .cookie-modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .cookie-modal-header,
  .cookie-modal-body,
  .cookie-modal-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .cookie-modal-footer {
    flex-direction: column;
  }
  
  .cookie-modal-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 0.75rem;
  }
  
  .cookie-banner-content {
    gap: 1rem;
  }
  
  .cookie-banner-text h4 {
    font-size: 1rem;
  }
  
  .cookie-banner-text p {
    font-size: 0.9rem;
  }
  
  .cookie-btn {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
  }
  
  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}