.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2c3e50;
  color: white;
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

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

.consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.consent-text {
  flex: 1;
  min-width: 300px;
  font-size: 14px;
  line-height: 1.4;
}

.consent-text a {
  color: #3498db;
  text-decoration: none;
}

.consent-text a:hover {
  text-decoration: underline;
}

.consent-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.consent-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.consent-btn.accept-all {
  background: #27ae60;
  color: white;
}

.consent-btn.accept-all:hover {
  background: #229954;
}

.consent-btn.reject-all {
  background: #e74c3c;
  color: white;
}

.consent-btn.reject-all:hover {
  background: #c0392b;
}

.consent-btn.customize {
  background: #95a5a6;
  color: white;
}

.consent-btn.customize:hover {
  background: #7f8c8d;
}

/* Preferences Modal */

.consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.consent-modal.show {
  display: flex;
}

#preferencesModal .modal-content {
  /*background: white;*/
  border-radius: 8px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

#preferencesModal .modal-header {
  margin-bottom: 1.5rem;
}

#preferencesModal .modal-header h2 {
  /*margin: 0 0 0.5rem 0;*/
  /*color: #2c3e50;*/
  text-transform: uppercase;
}

.consent-category {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ecf0f1;
}

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

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

.category-title {
  font-weight: 600;
  color: #ffffff;
}

.category-description {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.4;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

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

input:checked + .slider {
  background-color: #27ae60;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

input:disabled + .slider {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

#preferencesModal .modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

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

@media (max-width: 768px) {
  .consent-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  #preferencesModal .modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  #preferencesModal .modal-buttons {
    flex-direction: column;
  }
}

#preferencesModal .modal-header {
  flex-direction: column;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.7);
  z-index: 2;
}

#preferencesModal .modal-content {
  background-color: #000;
}

#preferencesModal p, #preferencesModal h2 {
  color: #fff;
}

