.privacy-consent-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.privacy-consent-popup.show {
  display: flex;
}

.consent-content-box {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  width: 90%;
  max-width: 500px;
  padding: 30px;
  box-sizing: border-box;
  position: relative;
  color: #333;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.privacy-consent-popup.show .consent-content-box {
  transform: translateY(0);
  opacity: 1;
}

.consent-header h2 {
  font-size: 1.8em;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
}

.consent-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px;
  text-align: center;
}

.consent-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.consent-actions button {
  padding: 14px 25px;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.consent-actions .accept-all-btn {
  background-color: #4CAF50;
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.consent-actions .accept-all-btn:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

.consent-actions .manage-preferences-btn {
  background-color: #e0e0e0;
  color: #333;
  border: 1px solid #ccc;
}

.consent-actions .manage-preferences-btn:hover {
  background-color: #d0d0d0;
  transform: translateY(-2px);
}

.consent-footer {
  text-align: center;
  font-size: 0.85em;
  color: #777;
}

.consent-footer a {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 500;
}

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

.cookie-settings-panel {
  display: none;
  padding-top: 10px;
}

.cookie-settings-panel.show {
  display: block;
}

.settings-header h3 {
  font-size: 1.5em;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

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

.cookie-category-info h4 {
  margin: 0;
  font-size: 1.1em;
  color: #333;
}

.cookie-category-info p {
  font-size: 0.85em;
  color: #666;
  margin-top: 5px;
  line-height: 1.5;
}

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

.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.4s;
  border-radius: 28px;
}

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

input:checked + .slider {
  background-color: #4CAF50;
}

input:focus + .slider {
  box-shadow: 0 0 1px #4CAF50;
}

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

.settings-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

.settings-actions button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.settings-actions .save-preferences-btn {
  background-color: #4CAF50;
  color: white;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
}

.settings-actions .save-preferences-btn:hover {
  background-color: #45a049;
  transform: translateY(-1px);
}

.settings-actions .back-btn {
  background-color: #f0f0f0;
  color: #555;
  border: 1px solid #ddd;
}

.settings-actions .back-btn:hover {
  background-color: #e0e0e0;
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .consent-content-box {
    width: 95%;
    padding: 20px;
  }

  .consent-header h2 {
    font-size: 1.5em;
  }

  .consent-description {
    font-size: 0.9em;
  }

  .consent-actions button {
    padding: 12px 20px;
    font-size: 0.9em;
  }

  .settings-header h3 {
    font-size: 1.3em;
  }

  .cookie-category-info h4 {
    font-size: 1em;
  }

  .cookie-category-info p {
    font-size: 0.8em;
  }
}

@media (max-width: 480px) {
  .consent-content-box {
    border-radius: 10px;
  }

  .consent-header h2 {
    font-size: 1.3em;
  }

  .consent-description {
    font-size: 0.85em;
  }

  .consent-actions button {
    padding: 10px 15px;
    font-size: 0.85em;
  }

  .settings-header h3 {
    font-size: 1.2em;
  }

  .cookie-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cookie-category-info {
    width: 100%;
  }

  .toggle-switch {
    align-self: flex-end;
  }

  .settings-actions button {
    font-size: 0.85em;
    padding: 10px 15px;
  }
}