/* Cookie Consent Banner Styles */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.25rem;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

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

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

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

.cookie-consent-text p {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #2F3B4C;
}

.cookie-consent-text a {
  color: #5B87C9;
  text-decoration: underline;
}

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

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-consent-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-consent-btn-accept {
  background: #5B87C9;
  color: #ffffff;
}

.cookie-consent-btn-accept:hover {
  background: #4a6fb0;
}

.cookie-consent-btn-reject {
  background: #f5f5f5;
  color: #2F3B4C;
  border: 1px solid #e0e0e0;
}

.cookie-consent-btn-reject:hover {
  background: #e8e8e8;
}

.cookie-consent-btn-settings {
  background: transparent;
  color: #5B87C9;
  text-decoration: underline;
  padding: 0.625rem 0.5rem;
}

.cookie-consent-btn-settings:hover {
  color: #F28C3A;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 1rem;
}

.cookie-settings-modal.show {
  display: flex;
}

.cookie-settings-content {
  background: #ffffff;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

.cookie-settings-header {
  margin-bottom: 1.5rem;
}

.cookie-settings-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: #2F3B4C;
}

.cookie-settings-header p {
  margin: 0;
  color: #666;
  font-size: 0.9375rem;
}

.cookie-category {
  border-bottom: 1px solid #e0e0e0;
  padding: 1.25rem 0;
}

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

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

.cookie-category-header h3 {
  margin: 0;
  font-size: 1.125rem;
  color: #2F3B4C;
}

.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.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: #5B87C9;
}

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

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

.cookie-category-description {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
}

.cookie-settings-footer {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-settings-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-settings-btn-save {
  background: #5B87C9;
  color: #ffffff;
}

.cookie-settings-btn-save:hover {
  background: #4a6fb0;
}

.cookie-settings-btn-cancel {
  background: #f5f5f5;
  color: #2F3B4C;
  border: 1px solid #e0e0e0;
}

.cookie-settings-btn-cancel:hover {
  background: #e8e8e8;
}

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

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-btn {
    flex: 1;
    text-align: center;
  }

  .cookie-settings-content {
    padding: 1.5rem;
  }
}
