.wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.swatch:hover:not(:disabled) {
  border-color: rgba(148, 163, 184, 0.45);
}

.swatchSelected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb) / 0.18);
  background: rgba(255, 255, 255, 0.82);
}

.swatch:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.swatchColor {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}

.swatchLabel {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

@media (min-width: 520px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
