/* Cookie Consent Banner Styles */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: #f0f0f0;
  padding: 16px 24px;
  z-index: 99999;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  display: none;
  animation: cookieSlideUp 0.3s ease-out;
}

.cookie-consent-banner.visible {
  display: block;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

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

.cookie-consent-text a {
  color: #7ec8e3;
  text-decoration: underline;
}

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

.cookie-consent-btn {
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.cookie-consent-btn:hover {
  opacity: 0.85;
}

.cookie-btn-accept {
  background: #2d6a4f;
  color: #fff;
}

.cookie-btn-reject {
  background: transparent;
  color: #f0f0f0;
  border: 1px solid #555;
}

.cookie-btn-preferences {
  background: transparent;
  color: #7ec8e3;
  border: 1px solid #7ec8e3;
}

/* Preferences Modal */
.cookie-preferences-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-preferences-overlay.visible {
  display: flex;
}

.cookie-preferences-modal {
  background: #fff;
  color: #333;
  border-radius: 8px;
  padding: 28px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cookie-preferences-modal h3 {
  margin: 0 0 16px;
  font-size: 18px;
  color: #1a1a2e;
}

.cookie-category {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.cookie-category:last-of-type {
  border-bottom: none;
}

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

.cookie-category-name {
  font-weight: 600;
  font-size: 14px;
}

.cookie-category-desc {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.cookie-toggle {
  position: relative;
  width: 42px;
  height: 22px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

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

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

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

.cookie-preferences-save {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  background: #2d6a4f;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.cookie-preferences-save:hover {
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 600px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-consent-buttons {
    justify-content: center;
    width: 100%;
  }
  .cookie-consent-btn {
    flex: 1;
    min-width: 100px;
  }
}
