/* =========================================================
   ACCENT COLOR PICKER
   ========================================================= */

.accent-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 8px;
}

.accent-swatch {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--swatch-color);
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px var(--ds-border, rgba(159, 207, 255, 0.2));
  cursor: pointer;
}

.accent-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.accent-swatch:has(input:checked) {
  border-color: var(--ds-border-strong, rgba(91, 173, 255, 0.58));
  box-shadow: 0 0 0 3px rgba(91, 173, 255, 0.28);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
