/* Cookie Banner Styles */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 9999;
  display: none;
  font-family: 'Nunito Sans', sans-serif;
}

#cookie-banner.show {
  display: block;
}

#cookie-banner .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

#cookie-banner-text {
  flex: 1;
  min-width: 250px;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

#cookie-banner-text a {
  color: #157efb;
  text-decoration: underline;
}

#cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#cookie-banner button {
  padding: 12px 24px;
  border: none;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  font-family: 'Nunito Sans', sans-serif;
}

#cookie-banner button:hover {
  transform: translateY(-1px);
}

#cookie-banner button:active {
  transform: translateY(0);
}

#cookie-accept-all {
  background-color: #157efb;
  color: #fff;
}

#cookie-accept-all:hover {
  background-color: #0d6edb;
}

#cookie-reject-all {
  background-color: #6c757d;
  color: #fff;
}

#cookie-reject-all:hover {
  background-color: #5a6268;
}

#cookie-settings {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

#cookie-settings:hover {
  background-color: #e9ecef;
}

/* Cookie Settings Modal */
#cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#cookie-settings-modal.show {
  display: flex;
}

#cookie-settings-content {
  background-color: #fff;
  border-radius: 0;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#cookie-settings-header {
  padding: 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#cookie-settings-header h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

#cookie-settings-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cookie-settings-close:hover {
  color: #333;
}

#cookie-settings-body {
  padding: 20px;
}

.cookie-category {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cookie-category h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.cookie-category p {
  margin: 5px 0 0 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.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: 0;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 0;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #157efb;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-category-required {
  display: inline-block;
  background-color: #f8f9fa;
  color: #666;
  padding: 2px 8px;
  border-radius: 0;
  font-size: 12px;
  margin-left: 10px;
}

#cookie-settings-footer {
  padding: 20px;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

#cookie-settings-footer button {
  padding: 12px 24px;
  border: none;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Nunito Sans', sans-serif;
}

#cookie-save-settings {
  background-color: #157efb;
  color: #fff;
}

#cookie-save-settings:hover {
  background-color: #0d6edb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #cookie-banner .container {
    flex-direction: column;
    align-items: stretch;
  }

  #cookie-banner-buttons {
    justify-content: stretch;
  }

  #cookie-banner button {
    flex: 1;
  }

  #cookie-settings-content {
    margin: 10px;
  }
}
