/* GDPR Cookie Consent Banner Styles */

.cookie-consent-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.cookie-consent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-consent-modal {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.cookie-consent-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.cookie-consent-content {
  padding: 24px;
  color: #374151;
  line-height: 1.6;
}

.cookie-consent-content p {
  margin: 0 0 16px 0;
  font-size: 14px;
}

.cookie-consent-content p:last-child {
  margin-bottom: 0;
}

.cookie-consent-content a {
  color: #19376d;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-consent-content a:hover {
  color: #0b2447;
}

#cookie-preferences {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

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

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

.cookie-category-header {
  margin-bottom: 8px;
}

.cookie-category-header label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #111827;
  font-size: 15px;
}

.cookie-category-header input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #19376d;
}

.cookie-category-header input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-required {
  margin-left: 8px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

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

.cookie-consent-actions {
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  background: #f9fafb;
  border-radius: 0 0 16px 16px;
}

.cookie-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.cookie-btn:focus {
  box-shadow: 0 0 0 3px rgba(25, 55, 109, 0.2);
}

.cookie-btn-primary {
  background: #19376d;
  color: white;
}

.cookie-btn-primary:hover {
  background: #0b2447;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 55, 109, 0.3);
}

.cookie-btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.cookie-btn-secondary:hover {
  background: #d1d5db;
  transform: translateY(-1px);
}

.cookie-btn-outline {
  background: transparent;
  color: #19376d;
  border: 2px solid #19376d;
}

.cookie-btn-outline:hover {
  background: #19376d;
  color: white;
  transform: translateY(-1px);
}

/* Cookie Settings Link (for footer or settings page) */
.cookie-settings-link {
  display: inline-block;
  padding: 8px 16px;
  color: #19376d;
  text-decoration: underline;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cookie-settings-link:hover {
  color: #0b2447;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .cookie-consent-modal {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 12px;
  }

  .cookie-consent-header {
    padding: 20px 20px 12px;
  }

  .cookie-consent-header h3 {
    font-size: 20px;
  }

  .cookie-consent-content {
    padding: 20px;
  }

  .cookie-consent-content p {
    font-size: 13px;
  }

  .cookie-consent-actions {
    padding: 16px;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    padding: 12px 20px;
  }

  .cookie-category {
    padding: 12px;
  }

  .cookie-category-description {
    padding-left: 28px;
    font-size: 12px;
  }
}

/* Smooth scrollbar for modal */
.cookie-consent-modal::-webkit-scrollbar {
  width: 8px;
}

.cookie-consent-modal::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 16px 16px 0;
}

.cookie-consent-modal::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.cookie-consent-modal::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
