/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1f2937;
  color: #ffffff;
  padding: 20px;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  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: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
}

.cookie-banner-text {
  font-size: 14px;
  line-height: 1.5;
}

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

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

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

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

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

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

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

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

.cookie-btn-customize {
  background-color: #6b7280;
  color: #ffffff;
  border: 1px solid #6b7280;
}

.cookie-btn-customize:hover {
  background-color: #4b5563;
}

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

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

.cookie-preferences-content {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cookie-preferences-header {
  margin-bottom: 24px;
}

.cookie-preferences-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.cookie-preferences-header p {
  color: #6b7280;
  margin: 0;
}

.cookie-category {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

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

.cookie-category h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

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

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

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-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-slider {
  background-color: #2563eb;
}

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

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

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

.cookie-preferences-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.cookie-preferences-actions .cookie-btn {
  padding: 12px 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 16px;
  }
  
  .cookie-banner-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .cookie-banner-text {
    text-align: center;
  }
  
  .cookie-banner-actions {
    justify-content: center;
    gap: 8px;
  }
  
  .cookie-preferences-content {
    padding: 24px;
    margin: 10px;
  }
  
  .cookie-preferences-actions {
    flex-direction: column;
  }
  
  .cookie-preferences-actions .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-banner-actions {
    flex-wrap: wrap;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    font-size: 13px;
  }
}