/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 24px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 3px solid #2d5f3f;
}

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

.cookie-consent-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

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

.cookie-consent-text p {
  margin: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.cookie-consent-text a {
  color: #2d5f3f;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-consent-text a:hover {
  color: #1a4d2e;
}

.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-settings {
  background: #f5f5f5;
  color: #333;
  border: 2px solid #ddd;
}

.cookie-btn-settings:hover {
  background: #e8e8e8;
  border-color: #ccc;
}

.cookie-btn-reject {
  background: #fff;
  color: #666;
  border: 2px solid #ddd;
}

.cookie-btn-reject:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.cookie-btn-accept {
  background: #2d5f3f;
  color: white;
  border: 2px solid #2d5f3f;
}

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

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-modal-overlay.show {
  display: flex;
  opacity: 1;
}

.cookie-modal {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.cookie-modal-overlay.show .cookie-modal {
  transform: scale(1);
}

.cookie-modal-header {
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h2 {
  margin: 0;
  color: #2d5f3f;
  font-size: 24px;
  font-weight: 700;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.cookie-modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

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

.cookie-category {
  margin-bottom: 24px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #2d5f3f;
}

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

.cookie-category-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.cookie-toggle {
  position: relative;
  width: 52px;
  height: 28px;
}

.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.3s;
  border-radius: 28px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #2d5f3f;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-category-description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.cookie-category.required .cookie-category-header h3::after {
  content: " (Always Active)";
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

.cookie-modal-footer {
  padding: 24px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

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

.cookie-modal-btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 2px solid #ddd;
}

.cookie-modal-btn-secondary:hover {
  background: #e8e8e8;
}

.cookie-modal-btn-primary {
  background: #2d5f3f;
  color: white;
  border: 2px solid #2d5f3f;
}

.cookie-modal-btn-primary:hover {
  background: #1a4d2e;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 20px 16px;
  }

  .cookie-consent-content {
    flex-direction: column;
    gap: 16px;
  }

  .cookie-consent-text {
    min-width: 100%;
  }

  .cookie-consent-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

  .cookie-modal {
    width: 95%;
    max-height: 90vh;
  }

  .cookie-modal-header h2 {
    font-size: 20px;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-modal-btn {
    width: 100%;
  }
}
