.privacy-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.privacy-consent-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.privacy-consent-popup {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  padding: 25px;
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  max-height: 90vh;
  overflow-y: auto;
}
.privacy-consent-overlay.is-visible .privacy-consent-popup {
  transform: translateY(0);
  opacity: 1;
}
.privacy-consent-header {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1a202c;
  text-align: center;
}
.privacy-consent-main-text p {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #4a5568;
}
.privacy-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.privacy-consent-actions button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.privacy-consent-actions button:hover {
  transform: translateY(-1px);
}
.privacy-consent-actions .accept-all {
  background-color: #4CAF50;
  color: white;
}
.privacy-consent-actions .accept-all:hover {
  background-color: #45a049;
}
.privacy-consent-actions .manage-preferences {
  background-color: #e2e8f0;
  color: #2d3748;
}
.privacy-consent-actions .manage-preferences:hover {
  background-color: #cbd5e0;
}
.privacy-consent-settings {
  display: none;
  padding-top: 15px;
}
.privacy-consent-settings.is-visible {
  display: block;
}
.privacy-consent-category {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #edf2f7;
}
.privacy-consent-category:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.privacy-consent-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
}
.privacy-consent-category-header h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}
.privacy-consent-category-header .toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}
.privacy-consent-category-header .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.privacy-consent-category-header .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 28px;
}
.privacy-consent-category-header .slider:before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
.privacy-consent-category-header input:checked + .slider {
  background-color: #4CAF50;
}
.privacy-consent-category-header input:focus + .slider {
  box-shadow: 0 0 1px #4CAF50;
}
.privacy-consent-category-header input:checked + .slider:before {
  transform: translateX(20px);
}
.privacy-consent-category-header .always-on-label {
  font-size: 0.85em;
  color: #718096;
  margin-left: 10px;
}
.privacy-consent-category-description {
  font-size: 0.85em;
  line-height: 1.5;
  color: #718096;
  margin-top: 10px;
  display: none;
}
.privacy-consent-category-description.is-expanded {
  display: block;
}
.privacy-consent-save-btn {
  width: 100%;
  padding: 12px 20px;
  background-color: #3182ce;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  margin-top: 20px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.privacy-consent-save-btn:hover {
  background-color: #2c5282;
  transform: translateY(-1px);
}
.privacy-consent-footer {
  margin-top: 20px;
  text-align: center;
}
.privacy-consent-footer a {
  color: #3182ce;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.2s ease;
}
.privacy-consent-footer a:hover {
  color: #2c5282;
  text-decoration: underline;
}
@media (max-width: 768px) {
  .privacy-consent-popup {
    width: 95%;
    padding: 20px;
  }
  .privacy-consent-header {
    font-size: 1.4em;
  }
  .privacy-consent-main-text p {
    font-size: 0.9em;
  }
  .privacy-consent-actions button, .privacy-consent-save-btn {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .privacy-consent-category-header h3 {
    font-size: 1em;
  }
  .privacy-consent-category-description {
    font-size: 0.8em;
  }
  .privacy-consent-category-header .toggle-switch {
    width: 42px;
    height: 24px;
  }
  .privacy-consent-category-header .slider:before {
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
  }
  .privacy-consent-category-header input:checked + .slider:before {
    transform: translateX(18px);
  }
}
