/* Cookie Consent Modal Styles */

.cookie-modal {
  position: fixed;
  /* Center the modal */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 2px solid var(--nl-green-dark);
  animation: fadeIn 0.3s ease;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  max-width: 400px;
  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  /* Remove previous animation */
  /* animation: fadeIn 0.3s ease; */
}

.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
  animation: fadeIn 0.3s ease;
}

.cookie-modal h3 {
  margin-top: 0;
  color: #14410b;
}

.cookie-modal .btn {
  margin: 5px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.cookie-modal .btn-accept {
  background: #14410b;
  color: white;
}

.cookie-modal .btn-decline {
  background: #ccc;
  color: #333;
}

.cookie-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.cookie-modal-header {
  padding: 24px 24px 0;
  border-bottom: 1px solid #eee;
}

.cookie-modal-header h3 {
  margin: 0 0 16px 0;
  color: var(--nl-green-dark, #14410b);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-modal-body {
  padding: 24px;
}

.cookie-modal-body > p {
  margin-bottom: 24px;
  color: #666;
  line-height: 1.6;
}
/*
.cookie-preferences {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-category {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  transition: border-color 0.2s ease;
}

.cookie-category:hover {
  border-color: var(--nl-green-light, #73af7e);
}
*/
.cookie-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin: 0;
}

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

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

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .toggle-slider {
  background: var(--nl-green-dark, #14410b);
}

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

.cookie-toggle input:disabled + .toggle-slider {
  background: var(--nl-green-light, #73af7e);
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-info strong {
  display: block;
  color: #333;
  margin-bottom: 4px;
  font-size: 1rem;
}

.cookie-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-modal-footer {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.cookie-links a {
  color: var(--nl-green-dark, #14410b);
  text-decoration: underline;
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-buttons .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-primary {
  background: var(--nl-green-dark, #14410b);
  color: white;
}

.btn-primary:hover {
  background: var(--nl-green-light, #73af7e);
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover {
  background: #218838;
}

.cookie-preferences-link {
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  margin: 0;
}

.cookie-preferences-link:hover {
  opacity: 0.8;
}

#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nl-green-dark, #14410b);
  color: white;
  padding: 1rem 2rem;
  z-index: 1000;
  display: none;
}

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

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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