/* Cookie Consent Banner Styles */
/* Designed to match the existing site style (simple, neutral, non-conflicting) */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  color: #fff;
  padding: 20px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
  border-top: 3px solid #ff6600;
  z-index: 10000;
  display: none;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.cookie-consent-banner.show {
  display: block;
  animation: slideUp 0.3s ease-out;
}

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

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

.cookie-consent-text {
  flex: 1 1 400px;
  font-size: 1rem;
  line-height: 1.5;
  color: #eee;
}

.cookie-consent-text a {
  color: #ff6600;
  text-decoration: underline;
  transition: color 0.2s;
}

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

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

.cookie-consent-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.cookie-consent-btn-accept {
  background: #ff6600;
  color: #fff;
  border: 2px solid #ff6600;
}

.cookie-consent-btn-accept:hover {
  background: #e65c00;
  border-color: #e65c00;
}

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

.cookie-consent-btn-reject:hover {
  background: #333;
  border-color: #888;
}

.cookie-consent-btn-settings {
  background: transparent;
  color: #ff6600;
  border: 2px solid #ff6600;
}

.cookie-consent-btn-settings:hover {
  background: #ff6600;
  color: #fff;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.cookie-settings-modal.show {
  display: flex;
  animation: fadeIn 0.3s;
}

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

.cookie-settings-content {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 3px solid #ff6600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

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

.cookie-settings-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
}

.cookie-settings-close:hover {
  color: #ff6600;
}

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

.cookie-settings-header h2 {
  color: #111;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cookie-settings-header p {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

.cookie-settings-options {
  margin-bottom: 24px;
}

.cookie-option {
  padding: 16px;
  margin-bottom: 12px;
  background: #f5f5f5;
  border-radius: 12px;
  border: 2px solid #ddd;
}

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

.cookie-option-header h3 {
  color: #111;
  font-size: 1.2rem;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  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.3s;
  border-radius: 26px;
}

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

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

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background-color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-option-desc {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 8px;
}

.cookie-settings-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-settings-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.cookie-settings-btn-save {
  background: #ff6600;
  color: #fff;
  border: 2px solid #ff6600;
}

.cookie-settings-btn-save:hover {
  background: #e65c00;
  border-color: #e65c00;
}

.cookie-settings-btn-cancel {
  background: transparent;
  color: #666;
  border: 2px solid #666;
}

.cookie-settings-btn-cancel:hover {
  background: #f5f5f5;
  color: #333;
  border-color: #333;
}

/* REMOVED: .footer-cookie-policy styles - no longer needed since the dynamic footer link has been removed */

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-text {
    flex: 1 1 auto;
    margin-bottom: 16px;
  }

  .cookie-consent-buttons {
    justify-content: center;
  }

  .cookie-consent-btn {
    flex: 1 1 auto;
    min-width: 100px;
  }

  .cookie-settings-content {
    padding: 30px 20px;
    width: 95%;
  }

  .cookie-settings-header h2 {
    font-size: 1.5rem;
  }

  .cookie-settings-close {
    top: 10px;
    right: 15px;
    font-size: 1.6rem;
  }

  .cookie-settings-actions {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .cookie-consent-banner {
    padding: 16px;
  }

  .cookie-consent-text {
    font-size: 0.9rem;
  }

  .cookie-consent-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .cookie-settings-content {
    padding: 24px 16px;
  }

  .cookie-option-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
