.moveops-consent {
  --moveops-consent-bg: #111827;
  --moveops-consent-text: #f9fafb;
  --moveops-consent-muted: #d1d5db;
  --moveops-consent-border: #374151;
  --moveops-consent-primary: #2563eb;
  --moveops-consent-primary-text: #ffffff;
  --moveops-consent-secondary: #ffffff;
  --moveops-consent-secondary-text: #111827;
  --moveops-consent-shadow: 0 16px 40px rgba(17, 24, 39, 0.28);
  position: fixed;
  inset: auto 0 0;
  z-index: 99999;
  padding: 1rem;
}

.moveops-consent[hidden] {
  display: none !important;
}

.moveops-consent__panel {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid var(--moveops-consent-border);
  border-radius: 0.75rem;
  background: var(--moveops-consent-bg);
  color: var(--moveops-consent-text);
  box-shadow: var(--moveops-consent-shadow);
}

.moveops-consent__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

.moveops-consent__message {
  margin: 0 0 1rem;
  color: var(--moveops-consent-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.moveops-consent__preferences {
  margin: 0 0 1rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--moveops-consent-border);
}

.moveops-consent__category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.moveops-consent__category + .moveops-consent__category {
  margin-top: 0.75rem;
}

.moveops-consent__category-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
}

.moveops-consent__category-label input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.moveops-consent__category-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.moveops-consent__category-name {
  font-weight: 600;
}

.moveops-consent__category-description {
  color: var(--moveops-consent-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.moveops-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.moveops-consent__button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.625rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
}

.moveops-consent__button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.moveops-consent__button--primary {
  background: var(--moveops-consent-primary);
  color: var(--moveops-consent-primary-text);
}

.moveops-consent__button--secondary {
  background: var(--moveops-consent-secondary);
  color: var(--moveops-consent-secondary-text);
  border-color: var(--moveops-consent-border);
}

.moveops-consent__button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.moveops-consent__policy-link {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}

.moveops-consent__policy-link a {
  color: #ffffff;
}

.moveops-consent-open {
  overflow: hidden;
}

@media (min-width: 640px) {
  .moveops-consent__actions {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .moveops-consent__panel {
    animation: moveops-consent-in 180ms ease-out;
  }
}

@keyframes moveops-consent-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.moveops-consent--reduced-motion .moveops-consent__panel {
  animation: none;
}
