.user-consent-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  font-family: 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 550px;
  width: 90%;
  background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  padding: 35px;
  color: #333;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-title {
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
}

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

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.button-group button {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  min-width: 140px;
}

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

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

.btn-reject-all {
  background-color: #f44336;
  color: white;
  box-shadow: 0 4px 10px rgba(244, 67, 54, 0.3);
}

.btn-reject-all:hover {
  background-color: #da190b;
  transform: translateY(-2px);
}

.btn-customize, .btn-back-overview {
  background-color: #007bff;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-customize:hover, .btn-back-overview:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.btn-save-preferences {
  background-color: #673ab7;
  color: white;
  box-shadow: 0 4px 10px rgba(103, 58, 183, 0.3);
}

.btn-save-preferences:hover {
  background-color: #5e35b1;
  transform: translateY(-2px);
}

.cookie-category {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.category-header h4 {
  margin: 0;
  font-size: 1.2em;
  color: #2c3e50;
}

.category-description {
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
}

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

.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;
}

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

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

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

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

.slider.round {
  border-radius: 28px;
}

.slider.round:before {
  border-radius: 50%;
}

input:disabled + .slider {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 25px;
  }
  .modal-title {
    font-size: 1.5em;
  }
  .modal-description {
    font-size: 0.9em;
  }
  .button-group button {
    width: 100%;
    min-width: unset;
  }
  .category-header h4 {
    font-size: 1.1em;
  }
  .category-description {
    font-size: 0.85em;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
    border-radius: 10px;
  }
  .modal-title {
    font-size: 1.3em;
  }
  .modal-description {
    font-size: 0.85em;
  }
  .button-group {
    flex-direction: column;
  }
  .cookie-category {
    padding: 15px;
  }
}
