/* Cookie Consent Banner Styles */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #0B4D88 0%, #0a3d6b 100%);
  color: #ffffff;
  padding: 20px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  animation: slideUp 0.5s ease-out;
}

.cookie-consent-banner.show {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent-content {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-content h4 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.cookie-consent-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e8f0f7;
}

.cookie-consent-content a {
  color: #ffd700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-consent-content a:hover {
  color: #fff;
}

.cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-consent-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-consent-btn-accept {
  background: #1e7e34;
  color: #ffffff;
}

.cookie-consent-btn-accept:hover {
  background: #155d27;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 126, 52, 0.4);
}

.cookie-consent-btn-decline {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.cookie-consent-btn-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.cookie-consent-btn-settings {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cookie-consent-btn-settings:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.cookie-settings-modal.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookie-settings-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-settings-header {
  background: #0B4D88;
  color: #ffffff;
  padding: 20px 24px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-settings-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.cookie-settings-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.cookie-settings-close:hover {
  transform: rotate(90deg);
}

.cookie-settings-body {
  padding: 24px;
}

.cookie-category {
  margin-bottom: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #0B4D88;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-category-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #0B4D88;
  font-weight: 600;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  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: #ccc;
  transition: 0.4s;
  border-radius: 26px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #1e7e34;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background-color: #1e7e34;
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-category-description {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.cookie-settings-footer {
  padding: 20px 24px;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-consent-container {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-content {
    text-align: center;
    min-width: 100%;
  }

  .cookie-consent-actions {
    justify-content: center;
  }

  .cookie-consent-btn {
    flex: 1;
    min-width: 120px;
  }

  .cookie-settings-content {
    width: 95%;
    max-height: 90vh;
  }

  .cookie-settings-footer {
    flex-direction: column;
  }

  .cookie-consent-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-consent-banner {
    padding: 15px 0;
  }

  .cookie-consent-content h4 {
    font-size: 1rem;
  }

  .cookie-consent-content p {
    font-size: 0.85rem;
  }

  .cookie-consent-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .cookie-settings-header h3 {
    font-size: 1.2rem;
  }

  .cookie-category-header h4 {
    font-size: 1rem;
  }
}
