#privacy-consent-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 15px;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.privacy-consent-box {
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  max-width: 500px;
  width: 100%;
  padding: 30px;
  box-sizing: border-box;
  color: #333;
  position: relative;
  transform: translateY(0);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 1;
}

.privacy-consent-box.hidden {
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
}

.privacy-consent-header {
  margin-bottom: 20px;
  text-align: center;
}

.privacy-consent-header h2 {
  font-size: 1.8em;
  color: #1a2a6c;
  margin: 0;
  line-height: 1.2;
}

.privacy-consent-body p {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #555;
}

.privacy-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
  justify-content: center;
}

.privacy-consent-buttons button,
.privacy-consent-settings-footer button {
  flex: 1 1 auto;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  min-width: 140px;
}

.privacy-consent-buttons .accept-all,
.privacy-consent-settings-footer .save-preferences {
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
}

.privacy-consent-buttons .accept-all:hover,
.privacy-consent-settings-footer .save-preferences:hover {
  background-color: #45a049;
  transform: translateY(-1px);
}

.privacy-consent-buttons .reject-all {
  background-color: #f44336;
  color: white;
}

.privacy-consent-buttons .reject-all:hover {
  background-color: #e53935;
  transform: translateY(-1px);
}

.privacy-consent-buttons .manage-preferences,
.privacy-consent-settings-footer .back-button {
  background-color: #e0e0e0;
  color: #333;
}

.privacy-consent-buttons .manage-preferences:hover,
.privacy-consent-settings-footer .back-button:hover {
  background-color: #d5d5d5;
  transform: translateY(-1px);
}

.privacy-consent-policy-link {
  text-align: center;
  margin-top: 20px;
}

.privacy-consent-policy-link a {
  color: #1a2a6c;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.2s ease;
}

.privacy-consent-policy-link a:hover {
  color: #0e1e5c;
  text-decoration: underline;
}

.privacy-consent-settings {
  display: none;
}

.privacy-consent-settings-header {
  margin-bottom: 20px;
  text-align: center;
}

.privacy-consent-settings-header h3 {
  font-size: 1.5em;
  color: #1a2a6c;
  margin: 0;
}

.privacy-consent-categories {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

.privacy-consent-category {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.privacy-consent-category:last-child {
  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;
  user-select: none;
}

.privacy-consent-category-header h4 {
  margin: 0;
  font-size: 1.1em;
  color: #333;
  flex-grow: 1;
}

.privacy-consent-category-header .toggle-switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 25px;
  flex-shrink: 0;
  margin-left: 15px;
}

.privacy-consent-category-header .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.privacy-consent-category-header .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 25px;
}

.privacy-consent-category-header .toggle-slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.privacy-consent-category-header input:checked + .toggle-slider {
  background-color: #4CAF50;
}

.privacy-consent-category-header input:focus + .toggle-slider {
  box-shadow: 0 0 1px #4CAF50;
}

.privacy-consent-category-header input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.privacy-consent-category-description {
  font-size: 0.85em;
  color: #666;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
  padding-top: 5px;
}

.privacy-consent-category-description.expanded {
  max-height: 200px;
  opacity: 1;
}

.privacy-consent-category-header .arrow {
  margin-left: 10px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #666;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.privacy-consent-category-header.expanded .arrow {
  transform: rotate(180deg);
}

.privacy-consent-settings-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
  justify-content: center;
}

@media (max-width: 550px) {
  .privacy-consent-box {
    padding: 20px;
    margin: 10px;
  }
  .privacy-consent-header h2 {
    font-size: 1.5em;
  }
  .privacy-consent-body p {
    font-size: 0.9em;
  }
  .privacy-consent-buttons button,
  .privacy-consent-settings-footer button {
    min-width: unset;
    flex: 1 1 100%;
  }
  .privacy-consent-category-header h4 {
    font-size: 1em;
  }
}

@media (max-width: 380px) {
  .privacy-consent-buttons {
    flex-direction: column;
  }
  .privacy-consent-settings-footer {
    flex-direction: column;
  }
}